Function at 0x4f9814
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x4f981d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov word [ebp - 6], cx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fa243
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004fb310
xor edx, edx
push ebp
push 0x4fa1c5
push dword fs:[edx]
mov dword fs:[edx], esp
push 1
mov cx, word [ebp - 6]
mov edx, ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501768
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x4f988f
mov byte [ebp - 7], 0
call fcn.00403e20
jmp 0x4fa1cc
mov ax, word [0x4fa254]
cmp ax, word [ebp - 6]
jne 0x4f98c3
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x54]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, ebx
call fcn.004e7b4c
jmp 0x4f98cf
mov dx, word [ebp - 6]
mov eax, dword [ebp - 4]
call fcn.004f8818
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x4f98eb
mov ax, word [0x4fa254]
cmp ax, word [ebp - 6]
jne 0x4f9a20
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
mov byte [eax + 0x21], 2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
mov edx, ebx
mov eax, ebx
mov cx, word [ebp - 6]
mov ebx, dword [eax]
call dword [ebx + 0x394]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x390]
test al, al
je 0x4f99dd
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
call fcn.0041f6e0
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4f99dd
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
mov edx, esi
call fcn.004ee2b0
mov edi, eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x30]
test al, al
jne 0x4f99d9
mov eax, edi
call fcn.00478ef4
cmp al, 4
je 0x4f99d9
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
mov edx, esi
call fcn.004ee2b0
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [0x597bb8]
call fcn.0040680c
mov eax, dword [ebp - 0x68]
xor ecx, ecx
pop edx
call fcn.0040a424
mov eax, dword [ebp - 0x5c]
xor edx, edx
call fcn.0046f20c
inc esi
dec ebx
jne 0x4f995f
xor eax, eax
push ebp
push 0x4f9a19
push dword fs:[eax]
mov dword fs:[eax], esp
mov dx, word [ebp - 6]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x70]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9a20
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
mov byte [eax + 0x21], 0
ret
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x48]
mov eax, ebx
mov edx, dword [0x4e69a4]
call fcn.0040374c
test al, al
je 0x4f9a42
mov eax, dword [ebx + 0x280]
mov dword [ebp - 0xc], eax
jmp 0x4f9a47
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4fa1a8
push dword fs:[edx]
mov dword fs:[edx], esp
mov ax, word [0x4fa258]
cmp ax, word [ebp - 6]
jne 0x4f9c0f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [0x4e69a4]
call fcn.0040374c
test al, al
je 0x4f9c0f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0047c8e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0047cb00
lea eax, [ebp - 0x24]
mov edx, dword [0x4e5fc8]
call fcn.00405c74
push eax
lea eax, [ebp - 0x20]
mov edx, dword [0x4d82e0]
call fcn.00405c74
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
pop ecx
call fcn.004f0b8c
push ebp
lea eax, [ebp - 0x28]
mov edx, dword [0x4e5fc8]
call fcn.00405c74
mov ecx, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004f96f0
pop ecx
lea eax, [ebp - 0x18]
call fcn.004043dc
mov eax, dword [ebp - 0x20]
call fcn.004059a0
mov ebx, eax
test ebx, ebx
jl 0x4f9b1d
inc ebx
xor esi, esi
cmp dword [ebp - 0x18], 0
je 0x4f9b08
lea eax, [ebp - 0x18]
mov edx, 0x4fa264
call fcn.004046b4
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + esi*4]
mov edx, dword [edx + 0x18]
call fcn.004046b4
inc esi
dec ebx
jne 0x4f9af5
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0x48]
mov edx, dword [ebx + 0x194]
call fcn.00404474
xor eax, eax
push ebp
push 0x4f9bef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x264]
jmp 0x4f9bb6
lea eax, [ebp - 0x48]
call fcn.004115a8
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 0x20]
call fcn.004f0d78
lea eax, [ebp - 0x48]
push eax
mov al, byte [0x4fa254]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004059a0
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x28]
call fcn.004a8850
test al, al
jne 0x4f9bab
mov eax, dword [ebp - 4]
call fcn.004fb2c8
call fcn.0049c0fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dl, byte [0x4fa254]
mov ecx, dword [eax]
call dword [ecx + 0x250]
jmp 0x4f9bb6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0047cd7c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
cmp byte [ebx + 0xa1], 0
je 0x4f9b4e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9bf6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.0047a6dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x264]
ret
mov ax, word [0x4fa268]
cmp ax, word [ebp - 6]
jne 0x4f9f0e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [0x4e69a4]
call fcn.0040374c
test al, al
je 0x4f9f0e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14c]
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 0xc]
mov dword [ebx + 0x2c8], eax
mov eax, ebx
call fcn.0047c8e8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00495118
xor eax, eax
push ebp
push 0x4f9ede
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.0047cb00
lea eax, [ebp - 0x24]
mov edx, dword [0x4e5fc8]
call fcn.00405c74
push eax
lea eax, [ebp - 0x20]
mov edx, dword [0x4d82e0]
call fcn.00405c74
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
pop ecx
call fcn.004f0b8c
push ebp
lea eax, [ebp - 0x28]
mov edx, dword [0x4e5fc8]
call fcn.00405c74
mov ecx, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.004f96f0
pop ecx
jmp 0x4f9ead
lea eax, [ebp - 0x48]
push eax
xor eax, eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x28]
call fcn.00405998
dec eax
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
mov cx, 0xc
mov edx, 1
call fcn.00418124
mov eax, dword [ebp - 0x28]
call fcn.00405998
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4f9d27
inc ebx
xor esi, esi
push esi
push 1
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + esi*4]
lea edx, [ebp - 0x78]
mov ecx, dword [eax]
call dword [ecx + 0x64]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004184c4
add esp, 0x10
inc esi
dec ebx
jne 0x4f9d02
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004059a0
push eax
lea eax, [ebp - 0x48]
push eax
mov al, byte [0x4fa254]
push eax
mov eax, dword [ebp - 0x24]
call fcn.004059a0
mov ecx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x24]
call fcn.004f569c
test al, al
jne 0x4f9e25
mov eax, dword [ebp - 4]
call fcn.004fb2c8
lea edx, [ebp - 0x14]
call fcn.00495118
mov eax, dword [ebp - 4]
call fcn.004fb2c8
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x34], edx
xor eax, eax
push ebp
push 0x4f9e1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004fb2c8
xor edx, edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
call fcn.004fb2c8
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xfc]
mov eax, dword [ebp - 4]
call fcn.004fb2c8
mov cl, 1
mov edx, dword [ebp - 0x14]
call fcn.00495140
mov eax, dword [ebp - 4]
call fcn.004fb2c8
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x110]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dl, byte [0x4fa254]
mov ecx, dword [eax]
call dword [ecx + 0x250]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9e25
mov eax, dword [ebp - 4]
call fcn.004fb2c8
mov edx, dword [ebp - 0x38]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x34]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
call fcn.004fb2c8
mov edx, dword [ebp - 0x14]
call fcn.00495134
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + pe_nt_image_headers32]
push ebp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004f91f4
pop ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd4]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f9ea2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd4]
mov edx, esi
call fcn.00490f54
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x74]
test al, al
je 0x4f9e9e
lea eax, [ebp - 0x58]
call fcn.004115a8
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xd4]
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0x78]
inc esi
dec ebx
jne 0x4f9e54
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
call fcn.0047cd7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
cmp byte [eax + 0xa1], 0
je 0x4f9cca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9ee5
mov eax, dword [ebp - 4]
call fcn.004fb2c8
mov edx, dword [ebp - 0x10]
call fcn.00495134
ret
mov ax, word [ebp - 6]
and ax, word [0x4fa26c]
mov dx, word [0x4fa270]
cmp dx, ax
je 0x4fa009
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [0x4e69a4]
call fcn.0040374c
test al, al
je 0x4fa009
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x38c]
test al, al
je 0x4fa009
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x2c8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x224]
cmp byte [edx + 6], 0
je 0x4f9fc8
cmp dword [eax + 0x2c8], 1
je 0x4f9fc8
lea eax, [ebp - 0x7c]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [0x597cac]
call fcn.0040680c
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x2c8]
mov dword [ebp - 0x64], edx
mov byte [ebp - 0x60], 0
lea edx, [ebp - 0x64]
xor ecx, ecx
call fcn.0040a424
mov eax, dword [ebp - 0x7c]
xor edx, edx
call fcn.0046f20c
test byte [ebp - 6], 0x20
jne 0x4f9ffa
test byte [ebp - 6], 0x10
je 0x4fa0d5
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x5d]
dec eax
sub al, 2
jae 0x4fa0d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
test byte [eax + 0x220], 4
jne 0x4fa0d5
push ebp
mov eax, dword [ebp - 0xc]
call fcn.004f9674
pop ecx
jmp 0x4fa0d5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
jne 0x4fa0d5
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501d80
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov dword [edx + 0x2c8], eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x224]
cmp byte [edx + 6], 0
je 0x4fa0a1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x2c8]
test eax, eax
je 0x4fa05a
dec eax
jle 0x4fa0a1
lea eax, [ebp - 0x84]
push eax
lea edx, [ebp - 0x88]
mov eax, dword [0x597a74]
call fcn.0040680c
mov eax, dword [ebp - 0x88]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x2c8]
mov dword [ebp - 0x64], edx
mov byte [ebp - 0x60], 0
lea edx, [ebp - 0x64]
xor ecx, ecx
call fcn.0040a424
mov eax, dword [ebp - 0x84]
xor edx, edx
call fcn.0046f20c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x30]
test al, al
jne 0x4fa0b3
test byte [ebp - 6], 0x20
je 0x4fa0d5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x34]
test al, al
je 0x4fa0cb
push ebp
mov eax, dword [ebp - 0xc]
call fcn.004f9674
pop ecx
jmp 0x4fa0d5
push ebp
mov eax, dword [ebp - 0xc]
call fcn.004f8e1c
pop ecx
test byte [ebp - 6], 0x10
je 0x4fa139
mov eax, dword [ebp - 4]
call fcn.004fb2ec
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x4fa139
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x4fa139
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [0x4e69a4]
call fcn.0040374c
test al, al
jne 0x4fa11e
mov ecx, 0x2d93
mov edx, 0x4fa27c
mov eax, 0x4fa2b8
call fcn.00404338
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x38c]
test al, al
jne 0x4fa139
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
dec dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x4fa151
mov ax, word [0x4fa254]
cmp ax, word [ebp - 6]
jne 0x4fa178
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4e7a78]
call fcn.00501b38
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0xc]
mov edx, ebx
mov eax, ebx
mov cx, word [ebp - 6]
mov ebx, dword [eax]
call dword [ebx + 0x39c]
mov byte [ebp - 7], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa1af
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x48]
mov eax, ebx
mov edx, dword [0x4e69a4]
call fcn.0040374c
test al, al
je 0x4fa1a7
mov eax, ebx
call fcn.0047a6dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa24a
lea eax, [ebp - 0x88]
mov edx, 4
call fcn.00404400
lea eax, [ebp - 0x78]
call fcn.004115a8
lea eax, [ebp - 0x68]
call fcn.004043dc
lea eax, [ebp - 0x5c]
call fcn.004043dc
lea eax, [ebp - 0x58]
mov edx, dword [0x40111c]
mov ecx, 2
call fcn.00405078
lea eax, [ebp - 0x28]
mov edx, dword [0x4e5fc8]
mov ecx, 2
call fcn.00405078
lea eax, [ebp - 0x20]
mov edx, dword [0x4d82e0]
call fcn.00405c74
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404400
ret