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

Disassembly:
sub esp, 0x78
push ebx
push ebp
mov ebp, dword [esp + 0x84]
xor eax, eax
push esi
mov dword [esp + 0x3c], eax
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
push edi
push esi
mov dword [esp + 0x1c], eax
call fcn.00487bf0
push esi
mov dword [esp + 0x2c], eax
call fcn.00487bf0
mov edi, dword [esp + 0x98]
mov dword [esp + 0x3c], eax
xor eax, eax
add esp, 8
mov ebx, dword [edi + 0x38]
mov al, byte [edi + 4]
mov ecx, dword [edi + 0x3c]
cmp eax, 0x71
mov edx, dword [ebx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
je 0x49c037
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], 1
mov cl, byte [eax + 0x40]
test cl, cl
jne 0x49c037
lea edx, [edx + edx*2]
shl edx, 3
mov dword [esp + 0x2c], edx
jmp 0x49bf79
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
cmp eax, dword [ecx]
jg 0x49c033
mov ecx, dword [ebx + 8]
xor eax, eax
test edx, edx
jle 0x49bfbc
add ecx, 0x14
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov cx, word [edx]
mov edx, dword [esp + 0x10]
cmp ecx, edx
je 0x49bfbc
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
inc eax
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x38], edx
jl 0x49bf97
cmp eax, dword [esp + 0x14]
jne 0x49c01b
mov eax, dword [esp + 0x18]
push 0
push 0x81
push eax
call fcn.00485d60
add esp, 0xc
test eax, eax
je 0x49c0ed
mov ecx, dword [esp + 0x10]
or byte [eax + 3], 4
push eax
push ebx
push ebp
mov dword [eax + 4], ecx
call fcn.004861e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x49c01b
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x2c]
mov cx, word [esp + 0x10]
mov word [edx + eax + 0x14], cx
mov edx, dword [esp + 0x14]
inc edx
add eax, 0x18
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc ecx
mov al, byte [edx + 0x40]
mov dword [esp + 0x10], ecx
test al, al
je 0x49bf75
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [edx*4]
push eax
push ecx
call fcn.00459430
add esp, 8
mov dword [esp + 0x4c], eax
test eax, eax
je 0x49c195
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
test edx, edx
jle 0x49c088
add ecx, 0x14
mov dword [esp + 0x48], edx
xor edx, edx
add eax, 4
mov dx, word [ecx]
add ecx, 0x18
dec edx
mov dword [eax - 4], edx
mov edx, dword [esp + 0x48]
dec edx
mov dword [esp + 0x48], edx
jne 0x49c06a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00481630
add esp, 8
mov dword [esp + 0x48], eax
test eax, eax
je 0x49c19d
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0
test ecx, ecx
jle 0x49c19d
mov ecx, dword [esp + 0x4c]
add eax, 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [ebx + 8]
mov eax, dword [esp + 0x2c]
mov eax, dword [edx + eax]
mov dword [esp + 0x44], eax
test byte [eax + 3], 1
je 0x49c0fa
push eax
push ebp
call fcn.00488ad0
add esp, 8
jmp 0x49c13f
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x78
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push edx
push edi
push ebp
call fcn.0049bea0
add esp, 0xc
mov dword [esp + 0x38], eax
test eax, eax
jne 0x49c120
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov eax, ecx
mov edx, dword [eax]
mov eax, dword [esp + 0x44]
push edx
push eax
push ebp
call fcn.0048bfd0
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x38]
add esp, 0xc
mov dword [ecx + edx], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
mov eax, dword [esp + 0x48]
mov edx, dword [ebx + 8]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x2c]
mov dl, byte [edx + eax + 0xc]
mov eax, dword [esp + 0x10]
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x1c]
mov ecx, 4
inc eax
add edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x2c]
add edx, 0x18
cmp eax, ecx
mov dword [esp + 0x2c], edx
jl 0x49c0cd
jmp 0x49c19d
mov dword [esp + 0x48], 0
mov dword [edi + 0x38], ebx
mov eax, dword [ebp]
push 0
push ebx
push eax
call fcn.0048c3a0
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x20]
cmp eax, 0x71
jne 0x49c1c7
xor ebx, ebx
mov dword [esp + 0x38], ebx
jmp 0x49c245
mov eax, dword [ebp + 0x4c]
mov edx, dword [edi]
mov ebx, dword [edx]
lea ecx, [eax + 1]
push ecx
push 0
lea eax, [eax + ebx + 1]
push 0x15
push esi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ecx
mov dword [ebp + 0x4c], eax
call fcn.004870f0
mov ecx, dword [esp + 0x28]
push ebx
push ecx
call fcn.00481630
add esp, 0x18
mov dword [esp + 0x30], eax
test eax, eax
je 0x49c243
mov eax, dword [esp + 0x3c]
xor ebx, ebx
test eax, eax
jle 0x49c243
mov edx, dword [esp + 0x30]
add edx, 0xc
mov dword [esp + 0x44], edx
push ebx
push edi
push ebp
call fcn.0049bea0
mov ecx, dword [esp + 0x50]
add esp, 0xc
inc ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
add ecx, 4
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x3c]
cmp ebx, eax
mov dword [esp + 0x44], ecx
mov byte [edx + ebx - 1], 0
jl 0x49c216
xor ebx, ebx
mov eax, dword [edi + 0x38]
push str.ORDER
push eax
push edi
push ebp
mov dword [edi + 0x3c], ebx
call fcn.0048bed0
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp dword [eax + 0x3c], ebx
jne 0x49c277
mov ecx, dword [eax + 0x38]
push str.ORDER
push ecx
push eax
push ebp
call fcn.0048bed0
add esp, 0x10
mov edx, dword [esp + 0x24]
push edx
push edi
push ebp
call fcn.0049b550
mov eax, dword [edi + 8]
add esp, 0xc
cmp eax, ebx
je 0x49c2d2
cmp dword [esp + 0x20], 0x71
jne 0x49c2d2
mov ebx, dword [ebp + 0x4c]
inc ebx
mov dword [esp + 0x2c], ebx
lea eax, [ebx + 1]
mov dword [ebp + 0x4c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x49c2b0
inc eax
jmp 0x49c2b3
mov eax, dword [edi + 8]
push ebx
push eax
push 0x1c
push esi
call fcn.004870f0
mov eax, dword [esp + 0x4c]
push eax
push ebx
push 0x1c
push esi
call fcn.004870f0
add esp, 0x20
xor ebx, ebx
jmp 0x49c2da
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebx
mov ecx, dword [edi + 0x48]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0047d560
mov eax, dword [edi + 0x4c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov dword [edi + 0x48], ebx
call fcn.0047d560
mov dword [edi + 0x4c], ebx
mov ebx, dword [ebp + 0x4c]
inc ebx
lea edx, [esp + 0x88]
push ebx
push 0xa
lea eax, [ebx + 1]
push edx
mov dword [esp + 0x2c], eax
add eax, 2
mov dword [esp + 0x38], eax
add eax, 2
mov dword [esp + 0x60], eax
mov dword [ebp + 0x4c], eax
call fcn.00497bd0
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x84]
inc eax
push eax
push 0xa
push ecx
call fcn.00497bd0
push 0xe
push esi
call fcn.0048d090
push esi
mov dword [esp + 0x88], eax
call fcn.00487c60
mov edx, dword [esp + 0x60]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x5c]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0x1e8]
lea edx, [esp + 0xac]
mov dword [esp + 0x98], ecx
push edx
push eax
push ebp
call fcn.00499240
mov eax, dword [esp + 0x50]
add esp, 0x40
push eax
push 1
push 0x15
push esi
call fcn.004870f0
push ebx
push 0x11
push esi
call fcn.00487bd0
push esi
call fcn.00487c60
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x70], edx
lea edx, [esp + 0x88]
mov dword [esp + 0x4c], ecx
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov ecx, dword [ebp + 0x1e8]
push edx
push edi
push ebp
mov dword [esp + 0x8c], ecx
call fcn.00499240
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x7c]
mov dword [edi + 8], eax
mov edx, dword [esp + 0x48]
mov dword [edi + 0xc], ecx
push edx
push 1
push 0x15
push esi
call fcn.004870f0
mov eax, dword [esp + 0x4c]
inc eax
push eax
push 0x11
push esi
call fcn.00487bd0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
add esp, 0x48
push ecx
mov ecx, dword [esp + 0x20]
push 0xfffffffffffffff0
push edx
mov edx, dword [esp + 0xa0]
push eax
lea eax, [ecx + 1]
push eax
lea eax, [esp + 0x8c]
push edx
push eax
push edi
push ebp
call fcn.0049c7e0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp eax, 0x71
je 0x49c453
cmp eax, 0x70
jne 0x49c488
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x48]
push 0xffffffffffffffef
push edx
mov edx, dword [esp + 0xa0]
push eax
push ecx
lea eax, [esp + 0x7c]
push edx
push eax
push edi
push ebp
call fcn.0049c7e0
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x44]
add esp, 0x24
cmp eax, 0x72
je 0x49c4f3
cmp eax, 0x73
je 0x49c4f3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x27
push esi
call fcn.004870f0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
push eax
push ecx
push 0xf
push esi
call fcn.004870f0
mov edx, dword [esp + 0x30]
lea eax, [edx + 1]
push eax
push 0x11
push esi
call fcn.00487bd0
mov eax, dword [esp + 0x58]
push eax
push 0
push 0xe
push esi
call fcn.004870f0
mov eax, dword [esp + 0x64]
add esp, 0x3c
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
add dword [edi + 0x20], ecx
mov ecx, dword [edi + 0x24]
adc ecx, edx
mov dword [edi + 0x24], ecx
jmp 0x49c50d
mov eax, dword [esp + 0x24]
push eax
push 0
push 0xe
push esi
call fcn.004870f0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp dword [esp + 0x20], 0x73
jne 0x49c53a
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
cmp edx, eax
jb 0x49c57e
ja 0x49c532
mov edx, dword [edi + 0x20]
cmp edx, ecx
jbe 0x49c57e
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], eax
jmp 0x49c57e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0x27
push esi
call fcn.004870f0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push edx
inc eax
push eax
push 0xf
push esi
call fcn.004870f0
push ebx
push 0x11
push esi
call fcn.00487bd0
mov ecx, dword [esp + 0x5c]
push ecx
push 0
push 0xe
push esi
call fcn.004870f0
add esp, 0x3c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
inc eax
push edx
push eax
push 0xf
push esi
call fcn.004870f0
push ebx
push 0x11
push esi
mov dword [esp + 0x54], eax
call fcn.00487bd0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
push ecx
push edx
push 0x27
push esi
call fcn.004870f0
mov eax, dword [esp + 0x60]
push eax
push 0
push 0xe
push esi
call fcn.004870f0
mov eax, dword [esp + 0x5c]
add esp, 0x3c
cmp eax, 0x71
jne 0x49c5d5
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x3c], ecx
jmp 0x49c61a
cmp eax, 0x73
jne 0x49c5e9
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
inc eax
mov dword [esp + 0x38], eax
jmp 0x49c61a
push ebx
push 0x11
push esi
call fcn.00487bd0
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push 0x27
push esi
call fcn.004870f0
mov ecx, dword [esp + 0x50]
push ecx
push 0
push 0xe
push esi
call fcn.004870f0
add esp, 0x2c
push esi
call fcn.00487c60
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, 0x71
je 0x49c635
cmp eax, 0x70
jne 0x49c64a
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
push edx
push eax
push 0xf
push esi
call fcn.004870f0
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 1]
push eax
push 0x11
push esi
call fcn.00487bd0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push edx
push eax
push 0x27
push esi
call fcn.004870f0
mov ecx, dword [esp + 0x50]
push ecx
push 0
push 0xe
push esi
call fcn.004870f0
mov edx, dword [esp + 0x80]
push edx
push esi
call fcn.00487110
mov eax, dword [esp + 0x44]
push eax
push 0
push 0x15
push esi
call fcn.004870f0
mov ecx, dword [esp + 0x60]
add esp, 0x44
push ecx
push 0
push 0x15
push esi
call fcn.004870f0
mov edx, dword [esp + 0x68]
push edx
push ebx
push 0xf
push esi
call fcn.004870f0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
push eax
lea eax, [ecx + 1]
push eax
push 0xf
push esi
call fcn.004870f0
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
push edx
push eax
push 0x27
push esi
call fcn.004870f0
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x5c]
add esp, 0x40
push ecx
push edx
push 0x27
push esi
call fcn.004870f0
mov eax, dword [esp + 0x44]
push eax
push esi
call fcn.00487c40
mov ecx, dword [esp + 0x64]
push 0xfffffffffffffff1
push ecx
push 0
push 0
push 0
push 0x23
push esi
call fcn.00486710
mov edx, dword [esp + 0x7c]
push 0xfffffffffffffff0
push edx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0xbc]
push eax
push ecx
push edx
push 0x24
push esi
call fcn.00486710
add esp, 0x50
push 1
push esi
call fcn.00487620
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
push ecx
push edx
push 0x25
push esi
call fcn.00486750
mov eax, dword [esp + 0x40]
push eax
push esi
call fcn.00487c40
mov ecx, dword [esp + 0xb8]
mov esi, dword [esp + 0x4c]
add esp, 0x24
cmp byte [ecx], 5
jne 0x49c798
mov eax, dword [esi + 0x3c]
mov ecx, esi
test eax, eax
je 0x49c78a
mov ecx, eax
mov eax, dword [ecx + 0x3c]
test eax, eax
jne 0x49c781
mov edx, dword [ecx]
push edx
push 0
push ebp
call fcn.0049b330
add esp, 0xc
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x49c7ad
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.004814b0
add esp, 8
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
xor eax, eax
push 0
mov al, byte [edi + 4]
push ecx
push edx
push eax
push ebp
mov dword [edi + 0x3c], esi
call fcn.0049be30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret