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

Disassembly:
sub esp, 0x148
mov eax, dword [0x4d36a4]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x15c]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
xor ebp, ebp
mov dword [esp + 0x18], edi
mov esi, dword [edi + 0x90]
mov dword [esp + 0x34], ecx
mov esi, dword [esi + 0x14]
mov eax, dword [esi + 0x78]
mov ebx, dword [esi + 0xec]
test eax, eax
je 0x49acb0
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
cmp dword [edi + 0x40], ebp
je 0x49acbd
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x49acdb
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push esi
mov eax, dword [eax + 0x74]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x49b46a
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0049a040
mov ecx, dword [esp + 0x168]
add esp, 8
mov dword [esi + 0x170], eax
mov dword [esp + 0x10], eax
mov dword [eax + 0x14], ecx
cmp dword [esp + 0x1c], 0
jne 0x49ad2d
push 0
push edi
call fcn.00499200
add esp, 8
test eax, eax
je 0x49ad23
mov ecx, dword [eax]
push eax
push edi
mov dword [edi + 0x68], ecx
call fcn.00499280
add esp, 8
jmp 0x49b450
mov ebp, 1
jmp 0x49b450
mov eax, dword [esi + 0x16c]
xor edi, edi
push dword [esi + 0x88]
mov dword [esp + 0x50], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x3c], edi
call fcn.00443ca0
mov dword [esp + 0x54], eax
add esp, 4
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x40], ecx
cmp word [eax + 0x70], di
je 0x49ad85
push edi
call fcn.00422fe0
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x49ae79
cmp dword [ecx + 0x34], edi
jne 0x49ae79
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x49adbd
push eax
call fcn.00424270
mov edi, eax
add esp, 4
test edi, edi
je 0x49adbd
mov ebx, 1
mov dword [esp + 0x24], ebx
jmp 0x49ae81
mov eax, dword [esi + 0x78]
cmp dword [eax + 0x28], 0
jne 0x49ae4d
cmp dword [eax + 0x20], 0
jg 0x49ae4d
cmp dword [eax + 0x4c], 0
je 0x49ade3
mov dword [esp + 0x2c], 1
jmp 0x49ae7f
cmp dword [eax + 0x3c], 0
jne 0x49adf8
mov dword [esi + 0x16c], 0
jmp 0x49ae7f
mov eax, dword [esi + 0x16c]
test eax, eax
je 0x49ae7f
push eax
call fcn.0049ce00
add esp, 4
test eax, eax
je 0x49ae7f
push dword [esi + 0x16c]
call fcn.0049d500
push dword [esi + 0x16c]
call fcn.0049ba60
mov ecx, dword [esi + 0x16c]
add esp, 8
cmp dword [ecx + 0x60], 0
jne 0x49ae3d
mov eax, dword [ecx + 0x84]
mov edi, dword [eax + 4]
push dword [ecx + 0x90]
call fcn.004972e0
add esp, 4
jmp 0x49ae7f
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x49ae62
push ecx
call fcn.00424270
mov edi, eax
add esp, 4
mov eax, dword [esi + 0x78]
mov eax, dword [eax + 0x20]
test edi, edi
cmovne ebx, edi
mov edi, ebx
xor ebx, ebx
test eax, eax
cmovg ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x49ae81
mov dword [esi + 0x16c], edi
xor ebx, ebx
mov ebp, dword [esp + 0x10]
push 0x10000
mov dword [ebp + 0x1d0], 0x40
call fcn.004340b0
mov dword [ebp + 0x1cc], eax
xor edx, edx
mov eax, dword [ebp + 0x1d0]
add esp, 4
movzx ecx, word [esi + 0xa2]
shl eax, 0xa
div ecx
mov ebp, eax
mov dword [esp + 0x44], ebp
call fcn.0042ca70
test eax, eax
jne 0x49aeee
cmp ebp, 1
jle 0x49aeee
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x49aee4
cmp dword [ecx + 0x34], eax
jne 0x49aee4
cmp dword [esi + 0x16c], eax
jne 0x49aeee
cmp dword [esp + 0x2c], eax
jne 0x49aeee
mov dword [esp + 0x30], 1
jmp 0x49aef6
mov dword [esp + 0x30], 0
test edi, edi
jne 0x49af08
cmp dword [esi + 0x16c], edi
mov eax, 1
cmove edi, eax
mov eax, dword [esi]
test edi, edi
jne 0x49af19
mov eax, dword [eax + 0x18]
push esi
call eax
add esp, 4
jmp 0x49af3d
mov eax, dword [eax + 0x10]
push edi
push esi
call eax
add esp, 8
mov ebp, eax
cmp dword [esp + 0x2c], 0
je 0x49af3f
test ebp, ebp
jne 0x49af3f
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov ebp, eax
mov edi, dword [esi + 0xec]
mov dword [esp + 0x28], edi
test ebp, ebp
jne 0x49b3e2
cmp dword [esi + 0x28], 0
jne 0x49b3e2
call fcn.00433880
test ax, ax
jne 0x49b3dd
cmp dword [esp + 0x30], 0
je 0x49b080
mov ecx, dword [esp + 0x1c]
cmp edi, ecx
ja 0x49b3e2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x49af8e
cmp eax, dword [esp + 0x44]
jl 0x49affb
mov eax, dword [esp + 0x44]
sub ecx, edi
cmp ecx, eax
jb 0x49af9c
mov ecx, eax
jmp 0x49af9d
inc ecx
test ebx, ebx
je 0x49afa6
cmp ebx, ecx
cmovb ecx, ebx
movzx eax, word [esi + 0xa2]
mov ebx, eax
cdq
push edx
push eax
imul ebx, ecx
lea ecx, [edi - 1]
push 0
push ecx
call fcn.004a2750
mov edi, eax
mov ecx, edx
movzx eax, word [esi + 0xa0]
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
mov edi, dword [esp + 0x18]
push ebx
push dword [edi + 0x1cc]
push dword [esi + 0x8c]
call fcn.004419e0
add esp, 0x14
cmp eax, ebx
jne 0x49b350
mov edi, dword [esp + 0x28]
xor ebx, ebx
jmp 0x49afff
mov ebx, dword [esp + 0x38]
movzx eax, word [esi + 0xa2]
mov ecx, dword [esp + 0x10]
imul eax, ebx
push 0
push esi
add eax, dword [ecx + 0x1cc]
mov dword [esi + 0xe4], eax
mov eax, dword [esi]
mov dword [esi + 0xec], edi
mov eax, dword [eax + 0x54]
call eax
add esp, 8
cmp eax, 1
je 0x49b3e2
mov eax, dword [esi + 0xe4]
xor ecx, ecx
mov dword [esi + 0x118], 1
mov dword [esi + 0x114], 1
cmp byte [eax], 0x2a
sete cl
cmp dword [esi + 0x7c], 0
mov dword [esi + 0x124], ecx
je 0x49b07b
mov eax, dword [esi]
push esi
mov eax, dword [eax + 0xd4]
call eax
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x49b3e2
inc ebx
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x49b09f
push eax
call fcn.0042f2a0
push eax
call fcn.004240f0
add esp, 8
test eax, eax
je 0x49b3e2
cmp edi, dword [esp + 0x1c]
ja 0x49b2aa
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49b0c8
push eax
call fcn.0042f2a0
push eax
call fcn.004240f0
add esp, 8
test eax, eax
je 0x49b2aa
mov ebx, dword [esp + 0x18]
movzx ecx, word [ebx + 0x70]
test cx, cx
je 0x49b0ed
mov eax, dword [esi]
push dword [esp + 0x14]
push ecx
mov eax, dword [eax + 0x58]
push esi
call eax
mov ebp, eax
add esp, 0xc
mov eax, dword [esp + 0x14]
jmp 0x49b0fc
push dword [ebx + 0xc]
call fcn.0042f2a0
add esp, 4
mov dword [esp + 0x14], eax
push eax
call fcn.00426550
add esp, 4
cmp eax, 0x40
ja 0x49b1a7
je 0x49b163
sub eax, 2
cmp eax, 0x1e
ja case.0x49b123.3
movzx eax, byte [eax + 0x49b490]
jmp dword [eax*4 + 0x49b484]
movzx eax, word [ebx + 0x74]
push eax
movzx eax, word [ebx + 0x72]
push eax
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x20]
call fcn.00497a80
movzx eax, word [ebx + 0x72]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0xec]
push dword [esp + 0x2c]
call fcn.00499e10
add esp, 0x20
jmp 0x49b2ae
cmp byte [ebx + 0x6e], 0x54
jne case.0x49b123.32
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.004244e0
push 0x11
lea eax, [esp + 0x60]
push eax
push dword [esi + 0xec]
push dword [esp + 0x24]
call fcn.00499e10
add esp, 0x18
jmp 0x49b2ae
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x18]
call fcn.004240c0
push 8
jmp 0x49b179
cmp eax, 0x80
je 0x49b27a
cmp eax, 0x400
je 0x49b24c
cmp eax, 0xc00
je 0x49b24c
mov eax, dword [ebx + 0x90]
mov ebx, dword [eax]
call fcn.00433880
test ax, ax
jne 0x49b234
call fcn.0043baa0
mov edi, eax
push 0x21
push edi
call fcn.0043bba0
push 0x402
push edi
call fcn.0043bc40
push 0
push edi
call fcn.0043bc00
push 0x21
call fcn.0044b6a0
push eax
push edi
call fcn.0043bb40
add esp, 0x24
test ebx, ebx
je 0x49b21b
push ebx
push edi
call fcn.0043bb60
add esp, 8
mov eax, dword [esi]
push edi
push esi
mov eax, dword [eax + 0x144]
call eax
push edi
call fcn.0043c2d0
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebx, dword [esp + 0x18]
mov ebp, 1
mov dword [esp + 0x3c], 0
mov eax, ebp
mov dword [ebx + 0x48], ebp
jmp 0x49b2b6
push dword [esp + 0x14]
call fcn.00424060
add esp, 4
push eax
push dword [esp + 0x18]
call fcn.00424080
add esp, 4
push eax
push dword [esi + 0xec]
push dword [esp + 0x1c]
call fcn.00499e10
add esp, 0x10
jmp 0x49b2ae
push dword [esp + 0x14]
call fcn.004240f0
neg eax
push 1
sbb al, al
and al, 0xe
add al, 0x46
mov byte [esp + 0x5c], al
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0xec]
push dword [esp + 0x20]
call fcn.00499e10
add esp, 0x14
jmp 0x49b2ae
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49b2c3
sub eax, 1
mov dword [esp + 0x24], eax
je 0x49b3e2
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x49b2fa
mov eax, dword [esi + 0x78]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x18]
jl 0x49b2f6
push edx
mov dword [esp + 0x24], 0
call fcn.0042f2a0
push eax
call fcn.004240f0
add esp, 8
test eax, eax
je 0x49b3d4
inc dword [esp + 0x20]
cmp dword [esp + 0x30], 0
je 0x49b304
inc edi
jmp 0x49b33b
test ebp, ebp
jne 0x49b423
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x28]
call eax
add esp, 8
mov ebp, eax
cmp dword [esp + 0x2c], 0
je 0x49b335
test ebp, ebp
jne 0x49b335
mov eax, dword [esi]
push 1
push esi
mov eax, dword [eax + 0x24]
call eax
add esp, 8
mov ebp, eax
mov edi, dword [esi + 0xec]
mov dword [esp + 0x28], edi
test ebp, ebp
jne 0x49b3e2
mov ebx, dword [esp + 0x24]
jmp 0x49af51
call fcn.00450710
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x40], eax
mov ecx, dword [ecx + 0x90]
mov eax, dword [ecx + 0x14]
mov ebx, dword [ecx]
mov dword [esp + 0x34], eax
call fcn.00433880
test ax, ax
jne 0x49b3e6
call fcn.0043baa0
mov edi, eax
push 0x17
push edi
call fcn.0043bba0
push 0x3f2
push edi
call fcn.0043bc40
push dword [esp + 0x50]
push edi
call fcn.0043bc00
push 0x17
call fcn.0044b6a0
push eax
push edi
call fcn.0043bb40
add esp, 0x24
test ebx, ebx
je 0x49b3b9
push ebx
push edi
call fcn.0043bb60
add esp, 8
mov ecx, dword [esp + 0x34]
push edi
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x144]
call eax
push edi
call fcn.0043c2d0
add esp, 0xc
jmp 0x49b3e2
mov dword [ebx + 0x48], 1
jmp 0x49b3e2
mov ebp, 1
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x30], 0
je 0x49b416
mov eax, dword [esp + 0x48]
mov dword [esi + 0xe4], eax
mov dword [esi + 0x114], 0
test ebp, ebp
jne 0x49b423
mov eax, dword [esi]
push dword [esp + 0x28]
push esi
mov eax, dword [eax + 0x10]
call eax
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x49b423
push edi
call fcn.0049a210
add esp, 4
mov eax, dword [esp + 0x18]
cmp word [eax + 0x70], 0
je 0x49b43a
push dword [esp + 0x14]
call fcn.00425800
add esp, 4
mov eax, dword [esp + 0x4c]
push dword [esp + 0x50]
mov dword [esi + 0x16c], eax
call fcn.00443ca0
add esp, 4
push 1
push dword [esp + 0x14]
call fcn.00499c10
add esp, 8
mov dword [esi + 0x170], 0
mov eax, ebp
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a209e
add esp, 0x148
ret