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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
push ebx
push esi
push edi
mov ebx, ecx
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x174]
call fcn.00494b30
test eax, eax
jne 0x49b656
mov ecx, dword [ebp + 0x30]
mov dword [ecx], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
lea edx, [ebp + 8]
lea edi, [ebx + 0x9c]
push edx
mov ecx, edi
call fcn.00493af0
test eax, eax
je 0x49b67d
mov eax, dword [ebp + 0x30]
mov dword [eax], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
cmp dword [ebp + 0x10], 0
je 0x49b6fa
lea esi, [ebx + 0x20]
push esi
lea ecx, [esp + 0x4c]
call fcn.004934e0
mov ecx, esi
call fcn.00493350
test eax, eax
mov dword [esp + 0x2c], eax
je 0x49b6f1
nop
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.00484f10
add esp, 8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004933b0
mov ecx, dword [esp + 0x10]
call fcn.004afdc0
cmp eax, dword [ebp + 8]
je 0x49b7a2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49b6ea
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x10], 0
cmp dword [esp + 0x2c], 0
jne 0x49b6a0
lea ecx, [esp + 0x48]
call fcn.00470590
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.00484f10
add esp, 8
lea edx, [esp + 0x14]
push edx
lea eax, [ebp + 8]
lea ecx, [ebx + 0x150]
push eax
mov dword [esp + 0x88], ecx
call fcn.004939c0
test eax, eax
jne 0x49be30
lea ecx, [esp + 0x30]
call fcn.004c4320
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.00484f10
add esp, 8
lea edx, [esp + 0x18]
push edx
lea eax, [ebp + 8]
push eax
mov ecx, edi
call fcn.004939c0
test eax, eax
je 0x49b9b6
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
cmp eax, 2
je 0x49b7de
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x2c]
mov dword [ecx], 0
mov dword [edx], 0xc000000d
lea ecx, [esp + 0x18]
call fcn.004ba940
lea ecx, [esp + 0x30]
call fcn.004c4440
lea ecx, [esp + 0x14]
call fcn.004ba940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], 0
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ecx], 0xc000000d
je 0x49b7cc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x48]
call fcn.00470590
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
push eax
call fcn.004b1da0
add esp, 4
test eax, eax
jne 0x49b80d
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], 0
mov dword [ecx], 0xc0000022
jmp 0x49b77e
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x50]
push eax
call edx
push eax
lea ecx, [esp + 0x34]
call fcn.004c4420
lea ecx, [esp + 0x50]
call fcn.004c4440
lea ecx, [esp + 0x48]
call fcn.004c4320
lea ecx, [esp + 0x84]
call fcn.004c4320
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x34]
call fcn.004c4450
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [eax]
push ecx
push edx
mov ecx, ebx
call fcn.00497b20
lea eax, [esp + 0x10]
push 4
push eax
call fcn.00484f10
add esp, 8
lea ecx, [esp + 0xc8]
call fcn.004c07b0
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x34]
call fcn.004c4450
mov esi, dword [ebx + 0x4c]
lea ecx, [esp + 0x48]
call fcn.004c4230
movzx edx, ax
push edx
lea eax, [esp + 0x98]
push eax
push esi
lea ecx, [esp + 0xd4]
call fcn.004c07e0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xcc]
call fcn.004c4020
lea ecx, [esp + 0xf8]
call fcn.004c07b0
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x34]
call fcn.004c4450
mov esi, dword [ebx + 0x48]
lea ecx, [esp + 0x48]
call fcn.004c4230
movzx eax, ax
push eax
lea ecx, [esp + 0xa4]
push ecx
push esi
lea ecx, [esp + 0x104]
call fcn.004c3d30
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0xfc]
call fcn.004c4020
mov esi, dword [esp + 0x1c]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x2c], esi
je 0x49b93c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
lea edx, [esp + 0x38]
push 4
push edx
call fcn.00484f10
lea eax, [esp + 0x44]
push 4
push eax
call fcn.00484f10
add esp, 0x10
lea ecx, [esp + 0xc8]
call fcn.004f26e0
lea ecx, [esp + 0x68]
mov dword [esp + 0x20], eax
call fcn.004b1880
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004b1770
test eax, eax
je 0x49bb04
lea ecx, [esp + 0x50]
call fcn.004c4320
lea ecx, [esp + 0x60]
call fcn.004c4320
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x49b9f3
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
push ecx
push edx
jmp 0x49ba44
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
push 0
push 0x40
push 0
push ecx
lea ecx, [esp + 0x7c]
call fcn.004c4110
mov ecx, eax
call fcn.004f47c0
push eax
mov ecx, ebx
call fcn.0049a920
test eax, eax
jne 0x49b830
mov edx, dword [ebp + 0x30]
mov dword [edx], 1
jmp 0x49b77e
cmp dword [esp + 0x68], edi
jne 0x49ba3a
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
push edx
lea eax, [esp + 0xb4]
push eax
call fcn.004b1560
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.004b2010
add esp, 0x14
test eax, eax
jne 0x49ba57
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.004c43c0
push eax
lea ecx, [esp + 0x54]
call fcn.004c4420
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x64]
call fcn.004c4450
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x54]
call fcn.004c4450
mov ecx, dword [ebx + 0x4c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
push esi
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0xc8]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
mov eax, dword [esp + 0x40]
push eax
push esi
lea ecx, [esp + 0x40]
call fcn.00490070
cmp esi, edi
je 0x49bab4
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov esi, dword [esp + 0x40]
cmp esi, edi
je 0x49bad8
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov eax, dword [esp + 0x40]
cmp eax, edi
je 0x49bad8
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x40], edi
lea ecx, [esp + 0x60]
call fcn.004c4440
lea ecx, [esp + 0x50]
call fcn.004c4440
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004b1770
test eax, eax
jne 0x49b986
mov dword [esp + 0x2c], esi
mov edx, dword [ebx + 0x4c]
push edx
lea ecx, [esp + 0x60]
call fcn.004c09b0
mov eax, dword [ebx + 0x48]
push eax
lea ecx, [esp + 0x5c]
call fcn.004c4080
lea ecx, [esp + 0x128]
call fcn.004c07b0
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0x34]
call fcn.004c4450
mov edi, dword [ebx + 0x4c]
lea ecx, [esp + 0x48]
call fcn.004c4230
movzx edx, ax
push edx
lea eax, [esp + 0xbc]
push eax
push edi
lea ecx, [esp + 0x134]
call fcn.004c07e0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x12c]
call fcn.004c4020
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x1c]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x20], eax
call edx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x49bc5e
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
je 0x49bbaf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x128]
call fcn.00490b40
lea ecx, [esp + 0x58]
call fcn.004c40b0
lea ecx, [esp + 0x5c]
call fcn.004c09e0
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x49bbe1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x49bbf5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], edi
cmp esi, edi
je 0x49bc01
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x24]
cmp eax, edi
je 0x49bc15
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xf8]
call fcn.00490b40
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x49bc35
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0xc8]
call fcn.00490b40
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x49b871
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
jmp 0x49b871
lea ecx, [esp + 0x158]
call fcn.004c07b0
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x34]
call fcn.004c4450
mov edi, dword [ebx + 0x48]
lea ecx, [esp + 0x48]
call fcn.004c4230
movzx ecx, ax
push ecx
lea edx, [esp + 0x90]
push edx
push edi
lea ecx, [esp + 0x164]
call fcn.004c3d30
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x15c]
call fcn.004c4020
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edi, dword [esp + 0x24]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov ecx, edi
mov dword [esp + 0x20], eax
call edx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x49bd37
mov eax, dword [esp + 0x44]
xor edi, edi
cmp eax, edi
je 0x49bceb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], edi
lea ecx, [esp + 0x158]
call fcn.00490b40
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x49bd0b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x128]
call fcn.00490b40
lea ecx, [esp + 0x58]
call fcn.004c40b0
lea ecx, [esp + 0x5c]
call fcn.004c09e0
lea ecx, [esp + 0x38]
call fcn.004c55c0
jmp 0x49bbf5
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x49bd4b
mov eax, dword [ecx]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
push edx
call eax
lea ecx, [esp + 0x44]
call fcn.004ba940
lea ecx, [esp + 0x158]
call fcn.00490b40
lea ecx, [esp + 0x28]
call fcn.004ba940
lea ecx, [esp + 0x128]
call fcn.00490b40
lea ecx, [esp + 0x58]
call fcn.004c40b0
lea ecx, [esp + 0x5c]
call fcn.004c09e0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0048ff90
lea ecx, [esp + 0x38]
call fcn.004c55c0
lea ecx, [esp + 0x2c]
call fcn.004ba940
lea ecx, [esp + 0x24]
call fcn.004ba940
lea ecx, [esp + 0xf8]
call fcn.00490b40
lea ecx, [esp + 0x1c]
call fcn.004ba940
lea ecx, [esp + 0xc8]
call fcn.00490b40
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
push eax
push ecx
call fcn.004b1100
add esp, 0xc
test eax, eax
jl 0x49be00
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
lea eax, [ebp + 8]
push eax
call fcn.00493890
lea ecx, [esp + 0x10]
call fcn.004ba940
lea ecx, [esp + 0x84]
call fcn.004c4440
lea ecx, [esp + 0x48]
call fcn.004c4440
lea ecx, [esp + 0x18]
call fcn.004ba940
lea ecx, [esp + 0x30]
call fcn.004c4440
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x49be8b
mov eax, dword [ebp + 0x28]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0x24]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call edx
test eax, eax
jl 0x49be87
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], 0
mov dword [ecx], 0x103
lea ecx, [esp + 0x14]
call fcn.004ba940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov ecx, dword [esp + 0x14]
test ecx, ecx
mov edx, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
mov dword [edx], 0
mov dword [eax], 0xc000000d
je 0x49bea9
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c