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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x998
and dword [esp + 0x14], 0
lea eax, [ebp + 8]
push esi
push edi
push ecx
mov edi, ecx
lea ecx, [esp + 0x80]
push eax
call fcn.0040ee78
mov edx, eax
lea ecx, [esp + 0x20]
call fcn.0040a1fe
lea ecx, [esp + 0x7c]
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
call fcn.0040db24
cmp esi, 3
jne 0x49ccb3
cmp dword [ebp + 0x30], 0
jne 0x49c2f5
push ecx
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0x84]
call fcn.0040ee78
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x49c24a
mov eax, dword [eax]
lea esi, [eax + ecx*2]
mov ecx, eax
mov edx, esi
call fcn.00408c20
sub esi, eax
mov dword [esp + 0x20], eax
push ecx
lea eax, [esp + 0x24]
sar esi, 1
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x2c], esi
call fcn.0040eb49
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
push dword [esp + 0x64]
cmovae eax, dword [esp + 0x58]
push eax
push ecx
call fcn.0041c09d
mov edx, eax
lea ecx, [esp + 0xa0]
call fcn.0040ead6
add esp, 0xc
lea ecx, [esp + 0x94]
push 4
push 0x4ea6b4
call fcn.0040df4d
push eax
lea ecx, [esp + 0x40]
call fcn.00407752
mov byte [esp + 0x14], 0
lea eax, [esp + 0x3c]
push dword [esp + 0x14]
lea ecx, [ebp + 0x20]
push eax
call fcn.0040e008
lea ecx, [esp + 0x3c]
call fcn.004077ce
lea ecx, [esp + 0x94]
call fcn.004077ce
lea ecx, [esp + 0x54]
call fcn.0040db24
lea ecx, [esp + 0x7c]
call fcn.0040db24
and dword [esp + 0x34], 0
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
push edi
cmovae eax, dword [ebp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x44], 0
call fcn.0049ce96
push ecx
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0x44]
call fcn.0040ee78
and dword [esp + 0x2c], 0
lea edx, [esp + 0x3c]
and dword [esp + 0x30], 0
push ecx
lea ecx, [esp + 0x30]
call fcn.0040edb3
pop ecx
lea ecx, [esp + 0x3c]
test eax, eax
jne 0x49ccc9
call fcn.0040db24
mov edi, dword [esp + 0x30]
test edi, edi
je 0x49c35a
lock inc dword [edi + 4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
test edi, edi
je 0x49c379
lock inc dword [edi + 4]
mov ecx, edi
call fcn.0040827c
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x38]
mov esi, dword [esp + 0x34]
mov byte [esp + 0xf], al
test ecx, ecx
je 0x49cb2c
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [ecx + 0x20]
push eax
lea ecx, [esp + 0x58]
call fcn.0040dc7c
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
push dword [esp + 0x64]
cmovae eax, dword [esp + 0x58]
mov edx, 0xfde9
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.0040ead6
add esp, 0xc
lea eax, [esp + 0x3c]
cmp dword [esp + 0x50], 0x10
cmovae eax, dword [esp + 0x3c]
push eax
call dword [0x4d6078]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], eax
call fcn.004077ce
mov eax, dword [esp + 0x10]
shr eax, 4
and al, 1
mov dword [esp + 0x10], eax
lea eax, [ebp + 8]
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.0040ee78
and dword [esp + 0x74], 0
lea eax, [esp + 0x74]
push eax
lea edx, [esp + 0x58]
mov dword [esp + 0x7c], 0x4fde70
lea ecx, [esp + 0x80]
call fcn.0040a2ac
cmp dword [esp + 0x78], 0
pop ecx
jne 0x49cb1e
and dword [esp + 0x6c], 0
lea eax, [esp + 0x6c]
push eax
lea edx, [esp + 0x40]
mov dword [esp + 0x74], 0x4fde70
lea ecx, [esp + 0xd4]
call fcn.0040a2ac
cmp dword [esp + 0x70], 0
pop ecx
jne 0x49ccdd
lea eax, [esp + 0xd0]
push eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x84]
call fcn.00409534
lea ecx, [esp + 0xd0]
call fcn.0040db24
lea ecx, [esp + 0x7c]
call fcn.0040db24
lea ecx, [esp + 0x3c]
call fcn.0040db24
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x94]
push dword [esp + 0xa4]
cmovae eax, dword [esp + 0x98]
push eax
push ecx
call fcn.0041c09d
mov edx, eax
lea ecx, [esp + 0x88]
call fcn.0040ead6
add esp, 0xc
mov ecx, 0x4ea512
cmp byte [esp + 0x10], 0
mov edx, 0x4ea6bc
cmove edx, ecx
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c4ed
sub ecx, edi
push ecx
push edx
lea ecx, [esp + 0x84]
call fcn.0040df4d
push eax
lea ecx, [esp + 0x40]
call fcn.00407752
cmp dword [esp + 0x50], 0x10
lea edi, [esp + 0x3c]
cmovae edi, dword [esp + 0x3c]
test esi, esi
je 0x49c8aa
cmp byte [esp + 0xf], 0
je 0x49c536
push ecx
push ecx
mov ecx, esi
call fcn.004a5ccb
pop ecx
pop ecx
mov al, byte [edi]
cmp al, 0x5c
je 0x49c540
cmp al, 0x2f
jne 0x49c54e
push edi
push 0x4ea69c
call fcn.00407bb7
inc edi
jmp 0x49c534
push 9
mov dword [esp + 0x18], edi
xor eax, eax
pop ecx
lea edi, [esp + 0xac]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xac]
push eax
call fcn.0049cd46
cmp dword [esi + 0x38], 1
jne 0x49c588
push ecx
push ecx
mov ecx, esi
call fcn.004a5ccb
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x49c8a5
mov edi, dword [esp + 0x14]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49c591
mov eax, dword [esp + 0xc4]
sub ecx, edx
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x49c5b5
lea ecx, [esp + 0xac]
call fcn.004a7388
mov edx, dword [esi + 0x2c]
mov ecx, esi
mov dword [esi + 0x100a4], eax
xor eax, eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x100a8], eax
mov dword [esi + 0x9c], 8
mov dword [esi + 0x100ac], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0xa0], eax
call fcn.004a3c18
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x10]
add eax, 0x2e
mov dword [esi + 0x84], edx
mov dword [esi + 0x90], eax
add eax, 0x20
push eax
mov dword [esi + 0x94], 0x20
call fcn.00444957
and dword [esi + 0x8c], 0
pop ecx
push 0
push 0x2014b50
push 4
pop edx
mov ecx, eax
mov dword [esi + 0x88], eax
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push 0
push 2
add ecx, 4
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push 0x14
push 2
add ecx, 6
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push dword [esi + 0x98]
add ecx, 8
push 2
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push dword [esi + 0x9c]
add ecx, 0xa
push 2
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push dword [esi + 0x100a4]
add ecx, 0xc
push 4
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push 0
push 4
add ecx, 0x10
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push 0
push 4
add ecx, 0x14
pop edx
call fcn.004a73cb
add esp, 0x40
push 0
mov ecx, dword [esi + 0x88]
push 0
push 4
add ecx, 0x18
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push dword [esp + 0x1c]
add ecx, 0x1c
push 2
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push 0
push 2
add ecx, 0x1e
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push 0
push 2
add ecx, 0x20
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push 0
push 2
add ecx, 0x22
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push dword [esp + 0xf4]
add ecx, 0x24
push 2
pop edx
call fcn.004a73cb
mov ecx, dword [esi + 0x88]
push 0
push dword [esp + 0x100]
add ecx, 0x26
push 4
pop edx
call fcn.004a73cb
mov edx, dword [esi + 0x88]
add esp, 0x38
or eax, 0xffffffff
cmp dword [esi + 0x84], 0
ja 0x49c7ae
cmp dword [esi + 0x80], eax
jae 0x49c7ae
mov eax, dword [esi + 0x80]
xor ecx, ecx
sub eax, dword [esi + 0x100f0]
sbb ecx, dword [esi + 0x100f4]
jmp 0x49c7b0
xor ecx, ecx
push ecx
push eax
lea ecx, [edx + 0x2a]
push 4
pop edx
call fcn.004a73cb
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
pop ecx
pop ecx
test edx, edx
je 0x49c7ed
mov al, byte [eax + edi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x88]
mov byte [edi + ecx + 0x2e], al
mov eax, edi
mov edi, dword [esp + 0x14]
inc eax
mov dword [esp + 0x18], eax
cmp eax, edx
jb 0x49c7cd
xor edx, edx
cmp dword [esi + 0x88], edx
jne 0x49c7ff
push 0xffffffffffffff98
pop ecx
jmp 0x49c8a3
push ecx
mov dword [esi + 0x100b0], edx
mov dword [esi + 0x100c0], edx
mov dword [esi + 0x100c4], edx
mov dword [esi + 0x100c8], edx
mov dword [esi + 0x100cc], edx
mov dword [esi + 0x100b8], edx
mov dword [esi + 0x100bc], edx
mov edx, edi
push ecx
mov ecx, esi
call fcn.004a658f
pop ecx
xor edx, edx
mov dword [esi + 0x50], 0x10000
pop ecx
mov ecx, eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], edx
lea eax, [esi + 0xa4]
mov dword [esi + 0x4c], eax
mov dword [esi + 0x54], edx
mov dword [esi + 0x6c], edx
test ecx, ecx
jne 0x49c892
push 8
pop edi
cmp dword [esi + 0x9c], edi
jne 0x49c892
cmp dword [esi + 0xa0], edx
jne 0x49c892
sub esp, 0x10
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], edx
push 0xfffffffffffffff1
push ecx
lea ecx, [esi + 0x40]
call fcn.004a1072
mov ecx, eax
add esp, 0x18
xor edx, edx
test ecx, ecx
jne 0x49c892
mov dword [esi + 0x78], edi
mov dword [esi + 0x100e0], edx
test ecx, ecx
jne 0x49c8a5
mov dword [esi + 0x38], 1
test ecx, ecx
sete byte [esp + 0xf]
lea ecx, [esp + 0x3c]
call fcn.004077ce
lea ecx, [esp + 0x7c]
call fcn.004077ce
or dword [esp + 0x1c], 1
xor eax, eax
push ecx
mov dword [esp + 0x164], eax
mov dword [esp + 0x184], eax
mov dword [esp + 0x188], eax
mov dword [esp + 0x18c], eax
lea eax, [esp + 0xfc]
push ecx
push eax
lea ecx, [esp + 0xf4]
mov dword [esp + 0xf4], 0x4f1b20
mov dword [esp + 0x164], 0x4d6c74
call fcn.0040dae7
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xe8], 0x4f2e84
mov eax, dword [esp + 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [esp + ecx + 0xe4], eax
lea ecx, [esp + 0xf8]
call fcn.0040da3c
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
push ecx
cmovae eax, dword [esp + 0x58]
push ecx
push eax
lea ecx, [esp + 0xf4]
call fcn.00411d14
cmp byte [esp + 0xf], 0
je 0x49caca
mov eax, dword [esp + 0xe8]
mov eax, dword [eax + 4]
cmp dword [esp + eax + 0xf4], 0
jne 0x49caba
push ecx
push ecx
lea eax, [esp + 0x1a8]
push eax
lea ecx, [esp + 0xf4]
call fcn.0040c327
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x10], eax
test eax, eax
je 0x49caba
xor edi, edi
mov dword [esp + 0x14], edi
test esi, esi
je 0x49caba
cmp dword [esi + 0x38], edi
je 0x49caba
mov ecx, dword [esi + 0x100a8]
lea edx, [esp + 0x1a0]
push eax
call fcn.0049fad8
pop ecx
mov dword [esi + 0x100a8], eax
lea ecx, [esi + 0x40]
lea eax, [esp + 0x1a0]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x44], eax
cmp dword [esi + 0x44], 0
jbe 0x49c968
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x49ca27
mov ecx, esi
call fcn.004a617b
or ecx, 0xffffffff
cmp eax, ecx
lea eax, [esi + 0xa4]
mov dword [esi + 0x4c], eax
cmove edi, ecx
mov ecx, 0x10000
mov dword [esi + 0x50], ecx
mov eax, ecx
mov dword [esp + 0x14], edi
lea ecx, [esi + 0x40]
test edi, edi
jne 0x49caba
cmp dword [esi + 0x9c], 8
jne 0x49ca65
cmp dword [esi + 0xa0], edi
jne 0x49ca65
mov esi, dword [esi + 0x54]
xor edx, edx
call fcn.004a1370
mov ecx, dword [esp + 0x34]
mov edi, eax
mov dword [esp + 0x14], edi
mov ecx, dword [ecx + 0x54]
sub ecx, esi
mov esi, dword [esp + 0x34]
add dword [esi + 0x7c], ecx
lea ecx, [esi + 0x40]
jmp 0x49cab2
mov ecx, dword [esi + 0x44]
mov edx, eax
cmp ecx, eax
cmovb edx, ecx
and dword [esp + 0x10], 0
test edx, edx
je 0x49ca97
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x4c]
mov al, byte [edi + eax]
mov byte [edi + ecx], al
inc edi
cmp edi, edx
jb 0x49ca7c
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x50]
add dword [esi + 0x4c], edx
sub ecx, edx
add dword [esi + 0x48], edx
sub eax, edx
add dword [esi + 0x54], edx
mov dword [esi + 0x44], ecx
lea ecx, [esi + 0x40]
add dword [ecx], edx
add dword [esi + 0x7c], edx
mov dword [esi + 0x50], eax
test edi, edi
je 0x49c9ed
push ecx
push ecx
mov ecx, esi
call fcn.004a5ccb
pop ecx
pop ecx
mov byte [esp + 0xf], 0
lea ecx, [esp + 0x158]
call fcn.0040c144
lea eax, [esp + 0x158]
mov dword [esp + 0x158], 0x4d6bec
push eax
call fcn.0041cb55
pop ecx
lea ecx, [esp + 0x94]
call fcn.0040db24
lea ecx, [esp + 0x54]
call fcn.0040db24
lea ecx, [esp + 0x20]
call fcn.00409f67
test eax, eax
jne 0x49ccd6
mov ecx, dword [esp + 0x20]
jmp 0x49c385
lea eax, [esp + 0x54]
push eax
lea edx, [esp + 0x78]
jmp 0x49cce6
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49cb39
call fcn.0040827c
mov edi, dword [esp + 0x30]
test edi, edi
je 0x49cb48
mov ecx, edi
call fcn.0040827c
test esi, esi
je 0x49ccb3
cmp byte [esp + 0xf], 0
je 0x49cb62
push ecx
push ecx
mov ecx, esi
call fcn.004a5ccb
pop ecx
pop ecx
xor eax, eax
and dword [esp + 0x10], eax
cmp dword [esi + 0x38], 1
mov dword [esp + 0x18], eax
jne 0x49cb81
push ecx
push ecx
mov ecx, esi
call fcn.004a5ccb
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x10100]
mov ecx, esi
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.004a3c18
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
test ecx, ecx
jne 0x49cbee
mov edi, dword [esi + 0x30]
test edi, edi
je 0x49cbee
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x49cbe1
cmp dword [edi + 8], ecx
jbe 0x49cbe1
push dword [edi + 8]
lea eax, [edi + 0x10]
push eax
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 8]
mov ecx, dword [esp + 0x28]
add esp, 0x10
cmp eax, dword [edi + 8]
push 0xffffffffffffffff
pop eax
cmovne ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
add eax, dword [edi + 8]
mov edi, dword [edi]
mov dword [esp + 0x10], eax
test edi, edi
jne 0x49cbb0
lea ecx, [esi + 0x30]
call fcn.004a750d
mov edx, dword [esp + 0x14]
mov ecx, edx
sub ecx, dword [esi + 0x100f0]
mov edi, dword [esp + 0x1c]
mov eax, edi
sbb eax, dword [esi + 0x100f4]
test eax, eax
ja 0x49cc30
jb 0x49cc1b
or eax, 0xffffffff
cmp ecx, eax
jae 0x49cc30
cmp dword [esi + 0x100fc], 0
ja 0x49cc30
cmp dword [esi + 0x100f8], 0xffff
jbe 0x49cc6b
mov edx, dword [esi + 0x2c]
mov ecx, esi
call fcn.004a3c18
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov esi, edx
push dword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov edi, eax
call fcn.004a5b3a
push esi
mov esi, dword [esp + 0x40]
mov ecx, esi
push edi
call fcn.004a5c58
mov edx, dword [esp + 0x24]
add esp, 0x10
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x18], 0
jne 0x49cc90
push edi
push edx
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.004a5a20
pop ecx
pop ecx
test eax, eax
jne 0x49cc90
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004a59c3
push dword [esi + 0x2c]
push dword [esi + 0x1c]
call dword [esi + 0x14]
mov eax, dword [esi + 0x10100]
pop ecx
pop ecx
test eax, eax
je 0x49ccac
push eax
call fcn.00444494
pop ecx
push esi
call fcn.00444494
pop ecx
lea ecx, [ebp + 8]
call fcn.004077ce
lea ecx, [ebp + 0x20]
call fcn.004077ce
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
mov edx, eax
mov ecx, 0x4f1c34
call fcn.00409c9d
mov edx, eax
call fcn.00409beb
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x70]
call fcn.00409cf5
int3