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

Disassembly:
sub esp, 0x8f0
mov edx, dword [esp + 0x8f4]
push ebx
push ebp
mov ebp, dword [esp + 0x920]
mov ecx, dword [edx + 0x10]
push esi
mov eax, dword [ebp + 0x44]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x908]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x14]
push edi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x910]
sub eax, ecx
mov ecx, 0x6a
mov dword [esp + 0x54], eax
xor eax, eax
lea edi, [esp + 0x60]
mov ebx, dword [esp + 0x908]
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0x6c]
mov dword [esp + 0x130], ecx
mov ecx, eax
shr ecx, 2
and ecx, 1
xor esi, esi
mov dword [esp + 0x138], ecx
mov ecx, dword [ebx + 0x10]
and ecx, 0x2000
mov dword [esp + 0x24], esi
mov dword [esp + 0x140], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0x34], esi
mov dword [esp + 0xf4], esi
mov esi, ecx
mov dword [esp + 0x1b8], ecx
imul esi, ecx
lea ecx, [esp + 0x73f]
mov dword [esp + 0x1e8], esi
not eax
and ecx, 0xffffffc0
and eax, 1
mov dword [esp + 0x1b4], ecx
mov ecx, dword [esp + 0x920]
mov dword [esp + 0x1bc], eax
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1cc], eax
mov eax, dword [ecx + 4]
mov ecx, 0x6a
lea esi, [esp + 0x60]
lea edi, [esp + 0x3b0]
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], 0x100000
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x6a
lea esi, [esp + 0x60]
lea edi, [esp + 0x208]
mov dword [ebx + 0x20], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x6a
lea esi, [esp + 0x60]
lea edi, [esp + 0x558]
mov dword [esp + 0x484], eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x62c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov dword [esp + 0x65c], eax
mov dword [esp + 0x2dc], eax
mov eax, dword [edx + 0x14]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x20], ebp
jbe 0x495807
mov esi, dword [0x67a014]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], ebp
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor edi, edi
div ecx
xor edx, edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x48], esi
imul eax, ecx
mov ecx, dword [esp + 0x93c]
lea eax, [eax + ecx - 1]
div ecx
mov edx, eax
mov eax, dword [0x67a010]
imul edx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x904]
mov dword [esp + 0x3c], edx
mov eax, dword [eax + 0x10]
test eax, eax
jbe 0x4957da
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
jmp 0x495295
mov edx, dword [esp + 0x3c]
imul eax, ebp
add eax, edi
mov esi, dword [ebx + 0x44]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
shl eax, 3
add esi, eax
add eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
cmp ecx, edx
jne 0x4952c9
test ebp, ebp
mov dword [esp + 0x18], 1
ja 0x4952d1
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x938]
mov ecx, dword [esp + 0x934]
push eax
lea eax, [ebx + 0x38]
mov dword [esi + 0xec], 0xffffffff
push eax
mov eax, dword [edx]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x93c]
push edx
mov edx, dword [esp + 0x93c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x934]
push ecx
push edx
mov ecx, dword [eax]
mov edx, dword [esp + 0x938]
push ecx
mov ecx, dword [esp + 0x938]
mov eax, dword [edx]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x938]
push edx
push eax
push ebp
lea ecx, [esp + 0x584]
push edi
lea edx, [esp + 0x238]
push ecx
lea eax, [esp + 0x3e4]
push edx
lea ecx, [esp + 0x98]
push eax
push ecx
call fcn.00495830
mov edx, dword [esp + 0x968]
add esp, 0x40
cmp dword [edx + 0x14], 3
je 0x4953b1
mov ecx, dword [esp + 0x1c]
mov eax, 0x10
cmp dword [ecx + 0xec], eax
jne 0x4953b1
mov dword [esi + 0xec], eax
mov edx, dword [0x67a010]
mov dword [esi + 0x194], edx
mov eax, dword [0x67a014]
mov dword [esi + 0x198], eax
mov ecx, dword [0x67a010]
mov dword [esi], ecx
mov edx, dword [0x67a014]
mov dword [esi + 4], edx
mov dword [esi + 0x154], 0
jmp 0x4957b1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x908]
push ecx
mov ecx, dword [esp + 0x918]
push edx
mov edx, dword [esp + 0x60]
push esi
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00496240
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0xec]
add esp, 0x28
cmp eax, 4
jne 0x49540c
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x178], 0
mov dword [esi + 0x154], ecx
jmp 0x4957b1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x8c]
push edx
push eax
lea edx, [esp + 0x3b8]
push ecx
push edx
mov edx, dword [esp + 0x914]
lea eax, [esp + 0x20]
push 3
lea ecx, [esp + 0x58]
push eax
mov eax, dword [ebx + 0x20]
push ecx
mov ecx, dword [ebx + 0x10]
push esi
push edx
push eax
push ecx
push ebp
push edi
call fcn.00495a90
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc8]
push edx
push eax
lea edx, [esp + 0x244]
push ecx
push edx
mov edx, dword [esp + 0x948]
lea eax, [esp + 0x54]
push 2
lea ecx, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x24]
push ecx
mov ecx, dword [ebx + 0x10]
push esi
push edx
push eax
push ecx
push ebp
push edi
call fcn.00495a90
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x78]
add esp, 0x68
test eax, 0x10000000
je 0x4954a8
mov dword [esp + 0x30], edx
jmp 0x4954b2
mov ecx, edx
sar ecx, 1
add ecx, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c0]
cmp edx, ecx
jg 0x4954e1
lea edx, [esp + 0x3b0]
lea ecx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x908]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00495e10
add esp, 0x18
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x218]
cmp ecx, eax
jg 0x495513
mov eax, dword [esp + 0x904]
lea ecx, [esp + 0x208]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
push ecx
push ebp
push edi
call fcn.00495e10
add esp, 0x18
mov edx, dword [esp + 0x230]
mov eax, dword [esp + 0x22c]
mov ecx, dword [esp + 0x3d8]
push edx
mov edx, dword [esp + 0x3d8]
push eax
push ecx
lea eax, [esp + 0x564]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x91c]
lea eax, [esp + 0x5c]
push edx
mov edx, dword [ebx + 0x10]
push eax
push ecx
push edx
push ebp
push edi
call fcn.00496e60
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x598]
mov edx, ecx
add esp, 0x30
sar edx, 3
add edx, ecx
cmp eax, edx
jge 0x49557f
test dword [ebx + 0x10], 0x8000000
je 0x495583
cmp eax, ecx
jg 0x4955aa
mov edx, dword [esp + 0x904]
lea eax, [esp + 0x558]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push ebp
push edi
call fcn.00497360
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov eax, dword [esp + 0x70]
lea edx, [ecx + ecx]
cmp eax, edx
jg 0x4955eb
mov eax, dword [ebx + 0x10]
test eax, 0x4000000
jne 0x4955c7
cmp ecx, 0x2ee
jg 0x4955cf
cmp ecx, 0x3e8
jle 0x4955eb
lea ecx, [esp + 0x60]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
push eax
call fcn.00496ae0
mov ecx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [esp + 0x1b8]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x14]
shl edx, 3
cmp eax, edx
jae 0x495658
lea ebp, [eax + 1]
lea eax, [ecx + ecx*4]
xor edx, edx
lea eax, [eax + eax*4]
shl eax, 2
div ebp
cmp eax, 0x32
jbe 0x495654
lea eax, [esp + 0x60]
xor ebp, ebp
push eax
push esi
mov dword [esp + 0xf8], ebp
call fcn.00495fd0
mov eax, dword [esi + 0xec]
add esp, 8
cmp eax, 4
jne 0x495650
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x178], ebp
mov ebp, dword [esp + 0x20]
mov dword [esi + 0x154], ecx
jmp 0x4957b1
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
mov eax, dword [ebx + 0xc]
test ah, 0x20
je 0x4956af
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [ebx + 0x10]
push ecx
mov ecx, dword [esp + 0x90c]
push ebp
push edi
push ecx
push eax
lea eax, [esp + 0x64]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
lea eax, [esp + 0x580]
push esi
lea ecx, [esp + 0x3dc]
push eax
lea edx, [esp + 0x238]
push ecx
lea eax, [esp + 0x94]
push edx
push eax
call fcn.0049b860
add esp, 0x3c
jmp 0x4956e9
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x48]
push edx
push eax
push ecx
lea edx, [esp + 0x568]
push esi
lea eax, [esp + 0x3c4]
push edx
lea ecx, [esp + 0x220]
push eax
lea edx, [esp + 0x7c]
push ecx
push edx
call fcn.00497660
add esp, 0x24
mov eax, dword [esi + 0xec]
cmp eax, 3
mov dword [esp + 0x18], eax
je 0x4956fd
cmp eax, 1
jne 0x495753
mov eax, dword [esp + 0x138]
lea ecx, [esi + 0x124]
test eax, eax
jne 0x495710
mov ecx, esi
mov eax, dword [esp + 0x24]
mov edx, dword [ecx]
cmp edx, eax
mov dword [esp + 0x14], ecx
jle 0x495722
mov eax, edx
jmp 0x495731
or ecx, 0xffffffff
sub ecx, edx
mov edx, dword [esp + 0x24]
cmp ecx, edx
jle 0x495731
mov eax, ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
cmp edx, eax
jle 0x495740
mov eax, edx
jmp 0x49574b
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x49574b
mov eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x49575d
cmp eax, 1
jne 0x4957b1
mov eax, dword [esp + 0x138]
test eax, eax
je 0x495770
add esi, 0x1b4
jmp 0x495776
add esi, 0x194
mov eax, dword [esp + 0x34]
mov edx, dword [esi]
cmp edx, eax
mov dword [esp + 0x14], esi
jle 0x495788
mov eax, edx
jmp 0x495793
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x495793
mov eax, ecx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 4]
cmp edx, eax
jle 0x4957a2
mov eax, edx
jmp 0x4957ad
or ecx, 0xffffffff
sub ecx, edx
cmp ecx, eax
jle 0x4957ad
mov eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x904]
mov edx, dword [esp + 0x28]
inc edi
inc edx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], edx
cmp edi, eax
jb 0x495291
mov esi, dword [0x67a014]
mov ecx, dword [esp + 0x93c]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
add edi, ecx
mov ecx, dword [esp + 0x40]
add edx, ecx
inc ebp
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x904]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x38], edi
cmp ebp, dword [edx + 0x14]
jb 0x495235
mov eax, dword [esp + 0x24]
push eax
call fcn.0048e350
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x20], eax
push ecx
call fcn.0048e350
add esp, 8
mov dword [ebx + 0x24], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8f0
ret