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

Disassembly:
sub esp, 0x118
mov eax, dword [esp + 0x11c]
mov dword [esp + 0x18], ecx
xor ecx, ecx
xor edx, edx
mov ch, byte [eax + 9]
mov dl, byte [eax + 0xb]
mov cl, byte [eax + 0xa]
mov eax, dword [eax + 0x14]
push ebx
push ebp
shl ecx, 8
push esi
mov esi, dword [esp + 0x130]
or ecx, edx
xor ebx, ebx
push edi
mov ebp, ecx
push ebx
push esi
push ebp
push eax
lea ecx, [esp + 0x40]
call fcn.0048bba0
mov ecx, dword [esp + 0x3c]
push 2
add ecx, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x6c], ecx
lea ecx, [esp + 0x34]
call fcn.00489400
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], eax
call fcn.004892c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
call fcn.004892c0
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.004892c0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x130]
xor ebp, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ebp
mov ecx, dword [eax]
cmp ecx, ebx
je 0x494b40
push ebx
lea edx, [esp + 0x80]
push ebx
push edx
mov eax, dword [eax + 0x10]
lea edx, [esp + 0xe4]
push edx
lea edx, [esp + 0xf4]
push edx
mov edx, dword [esp + 0x24]
push edx
push ebx
push eax
push ebx
push ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
call fcn.004555b0
push eax
call fcn.00496700
add esp, 0x28
test eax, eax
je 0x494b0d
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x7c]
and edi, 2
mov eax, dword [eax + 0x10]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00494950
mov dword [esp + 0x2c], eax
mov ebp, eax
mov edx, dword [esp + 0x7c]
mov ecx, 0x4da3e8
push edx
call fcn.0041e810
mov eax, dword [esp + 0xd8]
mov ecx, 0x4da3e8
push eax
call fcn.0041e810
mov ecx, dword [esp + 0xe4]
push ecx
mov ecx, 0x4da3e8
call fcn.0041e810
mov edx, dword [esp + 0x10]
push edx
call fcn.0041ec10
add esp, 4
cmp ebp, ebx
je 0x495384
mov eax, dword [esp + 0x130]
mov ecx, dword [ebp + 0x64]
cmp ecx, eax
jne 0x495384
mov ecx, dword [esp + 0x24]
push ebx
mov dword [ebp + 0x54], ecx
mov ecx, dword [ebp + 0x68]
call fcn.004555b0
push eax
push esi
lea ecx, [esp + 0x120]
call fcn.0043e610
mov ecx, dword [ebp + 0x68]
push 0x4d2dc4
call fcn.004529e0
cmp eax, ebx
je 0x495378
cmp dword [eax], 3
jne 0x495378
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [ebp + 0x4c], eax
mov dword [esp + 0x3c], ecx
push esi
lea ecx, [esp + 0xcc]
mov dword [esp + 0x24], edx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xcc], 6
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x14], ebx
call fcn.00454510
mov ecx, dword [esp + 0xd0]
mov edi, ecx
mov dword [esp + 0x1c], edi
call fcn.00452550
cmp edi, ebx
je 0x4952bb
jmp 0x494c01
xor ebx, ebx
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x68]
cmp edx, eax
jge 0x4952b7
lea ecx, [esp + 0x30]
call fcn.004891e0
and eax, 0xff
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.004892c0
mov edi, eax
mov eax, dword [ebp + 0x8c]
cmp eax, ebx
je 0x494c45
cmp dword [esp + 0x24], 0xb
je 0x494c45
add dword [esp + 0x3c], edi
jmp 0x494c01
mov eax, dword [esp + 0x24]
add eax, 0xfffffffc
cmp eax, 7
ja case.0x494c51.10
jmp dword [eax*4 + 0x49539c]
mov edi, 6
push esi
lea ecx, [esp + 0x9c]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], ebx
call fcn.004545a0
mov ecx, dword [esp + 0xa0]
push ebx
push str.Object
push ecx
mov ecx, esi
call fcn.00462ff0
mov ecx, dword [ebp + 0x68]
push 0x46
lea edx, [esp + 0x9c]
push ebx
push edx
push 0x4d2dc4
call fcn.004531a0
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
push eax
mov dword [eax + 0x88], 0x14
mov eax, dword [ebp + 0x68]
push eax
call fcn.00495bf0
add esp, 8
mov eax, 1
lea ecx, [esp + 0xb8]
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xbc], edi
mov dword [esp + 0xc0], ebx
call fcn.004545a0
mov eax, dword [esp + 0xc0]
push ebx
push str.Object
push eax
mov ecx, esi
mov edi, eax
call fcn.00462ff0
push ebx
push 0x4d93d4
push str.code
mov ecx, edi
call fcn.004537c0
lea ecx, [esp + 0xb8]
push ebx
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00454be0
lea ecx, [esp + 0xb8]
mov dword [ebp + 0x70], 1
call fcn.00454270
mov eax, dword [esp + 0xbc]
cmp eax, ebx
je 0x494d74
mov edx, dword [eax]
mov ecx, edx
and ecx, 0xfffffffe
not edx
dec ecx
and edx, 1
xor ecx, edx
mov dword [eax], ecx
mov ecx, dword [eax]
test ecx, 0xfffffffe
jg 0x494d74
mov ecx, eax
call fcn.00455c10
lea ecx, [esp + 0x98]
call fcn.00454270
mov ecx, dword [esp + 0x9c]
cmp ecx, ebx
je 0x494c01
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x494c01
call fcn.00455c10
jmp 0x494c01
push esi
push 0x4ce8a0
call fcn.004559c0
add esp, 8
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0xf0]
push eax
call fcn.00454820
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x494e01
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x494e01
call fcn.00455c10
lea eax, [esp + 0xf0]
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.0048cb00
lea ecx, [esp + 0x108]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00452a60
push esi
lea ecx, [esp + 0x70]
mov edi, eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x70], 6
mov dword [esp + 0x74], ebx
call fcn.004545a0
mov ebx, dword [esp + 0x74]
push 0
push str.Object
push ebx
mov ecx, esi
call fcn.00462ff0
mov eax, dword [esp + 0x108]
test eax, eax
je 0x494e64
mov eax, dword [eax + 4]
jmp 0x494e66
xor eax, eax
push 0
push eax
push str.name
mov ecx, ebx
call fcn.004537c0
test edi, edi
je 0x494ebe
mov al, byte [edi + 0x22]
test al, al
mov eax, 0x4d93cc
je 0x494e8a
mov eax, 0x4d93c4
push 0
push eax
push str.code
mov ecx, ebx
call fcn.004537c0
push 0
push 0
push edi
push 0x4d93b8
mov ecx, ebx
call fcn.004531a0
test byte [edi + 0x22], 2
je 0x494eb8
mov dword [esp + 0x18], 1
mov byte [edi + 0x22], 0
jmp 0x494ed1
push 0
push 0x4d93cc
push str.code
mov ecx, ebx
call fcn.004537c0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x6c]
push 0
push edx
call fcn.00454be0
mov edi, dword [esp + 0x20]
push 0
lea eax, [esp + 0xf4]
push 1
lea ecx, [esp + 0x110]
push eax
push ecx
mov ecx, edi
call fcn.00453210
cmp dword [esp + 0xf0], 3
jne 0x494f2a
lea edx, [esp + 0x108]
mov ecx, edi
push edx
call fcn.00452a60
test eax, eax
je 0x494f2a
mov eax, dword [eax + 8]
push eax
push edi
call fcn.00495bf0
add esp, 8
lea ecx, [esp + 0x6c]
mov dword [ebp + 0x70], 1
call fcn.00454270
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x494f61
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x494f61
call fcn.00455c10
lea ecx, [esp + 0xf0]
call fcn.004548c0
mov ecx, dword [esp + 0x108]
test ecx, ecx
je 0x494f97
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x494f97
call fcn.00455c10
lea ecx, [esp + 0xf0]
call fcn.00454270
mov ecx, dword [esp + 0xf4]
test ecx, ecx
je 0x494bff
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x494bff
call fcn.00455c10
jmp 0x494bff
mov eax, 1
mov dword [ebp + 0x8c], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
jmp 0x494c01
mov eax, dword [esp + 0x3c]
xor ecx, ecx
add edi, eax
cmp eax, edi
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [ebp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], edi
sete cl
cmp eax, edi
mov dword [esp + 0x10], ecx
jge 0x494c01
push 2
lea ecx, [esp + 0x34]
call fcn.00489400
mov ecx, dword [esp + 0x20]
mov ebx, eax
push ebx
call fcn.004529e0
mov ebp, eax
xor ecx, ecx
cmp ebp, ecx
je 0x49511a
mov al, byte [ebp + 0x22]
cmp al, 2
jne 0x495112
mov dword [esp + 0x90], ecx
mov dword [esp + 0x8c], ecx
push esi
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 6
call fcn.004545a0
mov edi, dword [esp + 0x90]
push 0
push str.Object
push edi
mov ecx, esi
call fcn.00462ff0
push 0
push ebx
push str.name
mov ecx, edi
call fcn.004537c0
push 0
push 0x4d93b0
push str.code
mov ecx, edi
call fcn.004537c0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x88]
push 0
push edx
call fcn.00454be0
test byte [ebp + 0x20], 1
je 0x4950d6
cmp dword [ebp], 6
jne 0x4950d6
mov ecx, dword [esp + 0x20]
push ebx
call fcn.00452ba0
jmp 0x4950da
mov byte [ebp + 0x22], 0
lea ecx, [esp + 0x88]
call fcn.00454270
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x49511a
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x49511a
call fcn.00455c10
jmp 0x49511a
cmp al, 3
jne 0x49511a
mov byte [ebp + 0x22], 1
push ebx
call fcn.0041ec10
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
add esp, 4
cmp eax, ecx
jl 0x49501f
mov ebp, dword [esp + 0x2c]
jmp 0x494bff
push 2
lea ecx, [esp + 0x34]
call fcn.00489400
mov edi, dword [esp + 0x20]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004529e0
test eax, eax
je 0x49522e
xor ecx, ecx
push ebx
mov cl, byte [eax + 0x22]
mov dword [esp + 0x18], ecx
mov ecx, edi
call fcn.00452ba0
test eax, eax
je 0x49522e
xor eax, eax
push esi
lea ecx, [esp + 0xac]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xac], 6
mov dword [esp + 0xb0], eax
call fcn.004545a0
mov edi, dword [esp + 0xb0]
push 0
push str.Object
push edi
mov ecx, esi
call fcn.00462ff0
push 0
push ebx
push str.name
mov ecx, edi
call fcn.004537c0
push 0
push 0x4d93a8
push str.code
mov ecx, edi
call fcn.004537c0
lea ecx, [esp + 0xa8]
push 0
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00454be0
test byte [esp + 0x14], 2
je 0x4951f8
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xa8]
call fcn.00454270
mov ecx, dword [esp + 0xac]
test ecx, ecx
je 0x49522e
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x49522e
call fcn.00455c10
push ebx
call fcn.0041ec10
add esp, 4
mov dword [ebp + 0x70], 1
jmp 0x494bff
push 2
lea ecx, [esp + 0x34]
mov dword [esp + 0x1c], 1
call fcn.00489400
push 2
lea ecx, [esp + 0x34]
mov edi, eax
call fcn.00489400
push ebx
push ebx
push eax
push edi
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.00497840
push edi
call fcn.0041ec10
mov eax, dword [esp + 0x18]
push eax
call fcn.0041ec10
add esp, 8
jmp 0x494c01
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 0x68]
push 0x4c5344
add edx, ecx
push edi
push edx
push eax
push esi
call fcn.0049cec0
mov eax, dword [esp + 0x50]
add esp, 0x14
add eax, edi
mov dword [esp + 0x3c], eax
jmp 0x494c01
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.00452500
test eax, eax
jne 0x4952cc
cmp dword [esp + 0x10], ebx
je 0x49532f
mov ecx, esi
call fcn.0045fa10
test eax, eax
je 0x4952f7
mov edx, dword [esi + 0xc8c]
mov eax, dword [esi + 0xc88]
lea ecx, [esp + 0xc8]
shl edx, 4
push ecx
lea ecx, [edx + eax - 0x10]
call fcn.004546b0
mov ecx, dword [ebp + 0x68]
push ebx
push ebx
push ebx
push ebx
push 1
push 0x4d9384
push ebx
push ecx
mov ecx, esi
call fcn.00461e70
test eax, eax
je 0x49531b
push 1
mov ecx, esi
call fcn.00439830
mov ecx, esi
call fcn.0045fb60
test byte [ebp + 0x50], 1
je 0x49532f
mov dword [ebp + 0x70], 1
cmp dword [esp + 0x18], ebx
je 0x49533b
mov dword [ebp + 0x88], ebx
mov ecx, edi
call fcn.00452560
lea ecx, [esp + 0xc8]
call fcn.00454270
mov ecx, dword [esp + 0xcc]
cmp ecx, ebx
je 0x495378
mov eax, dword [ecx]
mov edx, eax
and edx, 0xfffffffe
not eax
dec edx
and eax, 1
xor edx, eax
mov dword [ecx], edx
mov eax, dword [ecx]
test eax, 0xfffffffe
jg 0x495378
call fcn.00455c10
lea ecx, [esp + 0x118]
call fcn.0043e740
lea ecx, [esp + 0x30]
call fcn.0048bbe0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 0xc