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

Disassembly:
sub esp, 0xab8
mov eax, dword [0x10076068]
xor eax, esp
mov dword [esp + 0xab4], eax
mov eax, dword [esp + 0xac0]
push ebp
mov ebp, dword [esp + 0xac0]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
shr eax, 5
and eax, 3
imul eax, eax, 0x2e8
mov edx, dword [eax + ecx + 0x464]
lea eax, [eax + ecx + 0x198]
mov dword [esp + 0x18], edx
mov edx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [esp + 0x40], edx
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [eax + 0x2bc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], esi
cmp dword [ecx + 0x5878], esi
jne 0x10045a03
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xab4]
xor ecx, esp
call fcn.10059bfe
add esp, 0xab8
ret
mov eax, dword [eax + 0x2c4]
push ebx
push esi
cdq
push 0xd3
push edx
push eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x3c4], esi
mov dword [esp + 0x74], 0xd3
mov dword [esp + 0x78], esi
call fcn.10059a90
push ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
call fcn.1003dae0
mov eax, edi
cdq
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jmp 0x10045a70
mov eax, dword [ebp + 0x58]
movzx ebx, word [eax*2 + 0x1006b33c]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
add eax, 0x34c
lea edi, [ebx + ecx]
push eax
mov esi, ebp
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x3c], edi
call fcn.10045900
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x54]
add ebx, edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
push ecx
mov dword [esp + 0x28], ebx
xor ebx, ebx
lea esi, [eax + 0x688]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x3d0], ebx
mov dword [esp + 0x3d4], ebx
mov dword [esp + 0x3d8], ebx
mov dword [esp + 0x3dc], ebx
mov dword [esp + 0x3e8], ebx
mov dword [esp + 0x3ec], ebx
mov dword [esp + 0x3e0], ebx
mov dword [esp + 0x3e4], ebx
mov dword [esp + 0x730], ebx
mov dword [esp + 0x3f0], 0xffffffff
mov dword [esp + 0x3f4], 0x7fffff
call dword [0x10078400]
add esp, 0xc
mov dword [esp + 0x10], ebx
jmp 0x10045b3c
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
push edi
lea edx, [esp + 0xaa8]
push edx
push ebp
mov edx, ebx
mov ecx, esi
call fcn.100450c0
mov ecx, dword [ebp + 0x58]
shl eax, cl
push esi
push edi
mov dword [esp + 0xaa8], eax
call dword [0x100783e8]
cdq
add esp, 0x14
cmp dword [esp + 0x24], 0
mov dword [esp + 0x734], eax
mov dword [esp + 0x738], edx
je 0x10045b99
push 0x1006b36c
push esi
push edi
call dword [0x100783f4]
imul eax, dword [esp + 0x30]
sub eax, 0xffffff80
add esp, 0xc
sar eax, 8
jmp 0x10045b9b
xor eax, eax
cdq
mov dword [esp + 0x73c], eax
mov eax, dword [esp + 0x44]
movzx eax, word [eax + ebx*2]
mov dword [esp + 0x740], edx
cdq
mov dword [esp + 0x744], eax
mov dword [esp + 0x748], edx
test ebx, ebx
jle 0x10045c04
mov edi, 1
lea esi, [esp + 0xaa4]
xor ecx, ecx
dec edi
mov eax, 1
lea esp, [esp]
xor edx, edx
cmp word [esi + eax*2], dx
setne dl
add ecx, edx
cmp ecx, 3
jg 0x10045c04
inc eax
cmp eax, 0x10
jl 0x10045be0
add esi, 0x20
test edi, edi
jg 0x10045bd3
mov esi, 0x8c
jmp 0x10045c06
xor esi, esi
mov eax, dword [esp + 0x73c]
mov ecx, dword [esp + 0x740]
xor edi, edi
add eax, dword [esp + 0x734]
push edi
adc ecx, dword [esp + 0x73c]
push 0x100
push ecx
push eax
call fcn.10059a90
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x50], edx
push ecx
mov ecx, dword [esp + 0x34]
mov ebx, eax
mov edx, esi
add edx, dword [esp + 0x748]
mov eax, edi
adc eax, dword [esp + 0x74c]
push ecx
push eax
push edx
call fcn.10059a90
add eax, ebx
adc edx, dword [esp + 0x50]
cmp dword [esp + 0x14], edi
jl 0x10045c82
cmp edx, dword [esp + 0x3e8]
jg 0x10045d95
jl 0x10045c82
cmp eax, dword [esp + 0x3e4]
jae 0x10045d95
lea edx, [esp + 0xaa4]
push edx
push ebp
call fcn.10038070
cdq
add esp, 8
add esi, eax
adc edi, edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
mov eax, esi
add eax, dword [esp + 0x748]
mov ecx, edi
adc ecx, dword [esp + 0x74c]
push edx
push ecx
push eax
call fcn.10059a90
add eax, ebx
adc edx, dword [esp + 0x50]
cmp dword [esp + 0x14], 0
jl 0x10045ce4
cmp edx, dword [esp + 0x3e8]
jg 0x10045d95
jl 0x10045ce4
cmp eax, dword [esp + 0x3e4]
jae 0x10045d95
mov ecx, dword [esp + 0x734]
mov dword [esp + 0x3c4], ecx
mov ecx, dword [esp + 0x738]
mov dword [esp + 0x3c8], ecx
mov ecx, dword [esp + 0x73c]
mov dword [esp + 0x3cc], ecx
mov ecx, dword [esp + 0x740]
mov dword [esp + 0x3d0], ecx
mov ecx, dword [esp + 0x744]
mov dword [esp + 0x3d4], ecx
mov ecx, dword [esp + 0x748]
mov dword [esp + 0x3d8], ecx
mov ecx, dword [esp + 0xa94]
mov dword [esp + 0x3e0], edi
mov edi, dword [ebp + 0x58]
mov dword [esp + 0x724], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3e4], eax
mov eax, dword [esp + 0x1c]
shl edi, 5
mov dword [esp + 0x3dc], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3e8], edx
mov edx, dword [esp + 0x10]
lea edi, [esp + edi + 0x9c]
mov ecx, 8
lea esi, [esp + 0xaa4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jl 0x10045b30
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x2c4]
mov ecx, dword [esp + 0x3dc]
add ecx, dword [esp + 0x3d4]
mov esi, dword [esp + 0x3e0]
adc esi, dword [esp + 0x3d8]
cdq
push edx
push eax
push esi
push ecx
call fcn.10059a90
mov ebx, dword [esp + 0x3c4]
mov ecx, dword [esp + 0x3d0]
mov esi, eax
mov eax, dword [esp + 0x3cc]
add eax, ebx
adc ecx, dword [esp + 0x3c8]
push 0
push 0x100
push ecx
push eax
mov edi, edx
call fcn.10059a90
mov ecx, dword [esp + 0x3d0]
add esi, eax
mov eax, dword [esp + 0x3cc]
adc edi, edx
add dword [esp + 0x54], ebx
mov edx, dword [esp + 0x3c8]
mov ebx, dword [esp + 0x78]
adc dword [esp + 0x58], edx
add dword [esp + 0x5c], eax
mov edx, dword [esp + 0x3dc]
mov eax, dword [esp + 0x3e0]
adc dword [esp + 0x60], ecx
add dword [esp + 0x6c], edx
mov ecx, dword [esp + 0x3d4]
mov edx, dword [esp + 0x3d8]
adc dword [esp + 0x70], eax
add dword [esp + 0x64], ecx
mov eax, dword [esp + 0x724]
adc dword [esp + 0x68], edx
or dword [esp + 0x3b4], eax
add dword [esp + 0x74], esi
mov esi, dword [esp + 0x2c]
adc ebx, edi
cmp ebx, dword [esi + 0x24]
mov dword [esp + 0x78], ebx
jg 0x10045fbd
jl 0x10045e94
mov ecx, dword [esp + 0x74]
cmp ecx, dword [esi + 0x20]
jae 0x10045fbd
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x3d4]
mov edx, dword [esp + 0x40]
cmp eax, dword [edx + 0x5878]
mov dword [esp + 0x28], eax
jg 0x10045fbd
mov edi, dword [ebp + 0x58]
movzx eax, word [edi*2 + 0x1006b33c]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x10045ed7
push eax
push ecx
call dword [0x100783e4]
add esp, 8
mov dl, byte [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x724], eax
mov byte [edi + esi + 0x34c], dl
setne al
sar edi, 2
mov dword [ebp + edi*4 + 0x80], eax
mov eax, dword [ebp + 0x58]
mov ecx, eax
sar ecx, 2
mov edx, dword [ebp + ecx*4 + 0x80]
and eax, 3
mov dword [ebp + eax*4 + 0x5c], edx
mov eax, dword [esp + 0x18]
push eax
push ebp
call fcn.1003dbd0
add esp, 8
test eax, eax
jne 0x10045a70
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x70]
mov dword [esi], ecx
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3b4]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x360], eax
lea eax, [esi + 0x34c]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x74]
push eax
push ebp
mov dword [esi + 0x14], edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ebx
call fcn.1003da40
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea edi, [esi + 0x48]
mov dword [ebp + 0xc], edx
mov ecx, 0x80
lea esi, [esp + 0xa4]
mov dword [ebp + 0x10], eax
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov eax, 1
mov ecx, dword [esp + 0xac4]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10059bfe
add esp, 0xab8
ret
xor eax, eax
jmp 0x10045fa4