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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [0x7c2174]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x8c]
mov dword [0x7c2174], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x5311d9
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 0
jne 0x5311ed
movzx eax, byte [eax + 0x1b]
and eax, 0x80
je 0x5311f6
mov dword [ebp - 8], 0
jmp 0x53120e
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x74]
add esp, 8
movzx eax, ax
test eax, eax
jne 0x5319ec
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00530bb0
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x14c], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 8]
test eax, eax
jne 0x531246
mov eax, dword [ebp + 8]
push eax
call fcn.00531110
pop ecx
jmp 0x5319d0
mov ax, word [ebx + 0x148]
mov word [ebp - 0x4a], ax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebx + 0xd0]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], 0
mov eax, 0xffff
movzx ecx, word [ebx + 0xa2]
cdq
idiv ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x18]
test eax, eax
je 0x5312a7
push 0
call fcn.0049f730
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x78]
mov edx, eax
test edx, edx
je 0x5312b6
cmp dword [eax + 0x34], 0
je 0x5312c4
mov word [ebx + 0x148], 0
jmp 0x53135f
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x5312de
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x24]
push eax
call fcn.0049ffd0
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5312f1
mov dword [ebp - 0x34], 1
jmp 0x53135f
mov eax, dword [ebx + 0x78]
cmp dword [eax + 0x28], 0
jne 0x531300
cmp dword [eax + 0x20], 0
jle 0x53133b
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x53131a
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x1c]
push eax
call fcn.0049ffd0
pop ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x531327
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebx + 0x78]
cmp dword [eax + 0x20], 0
jle 0x53135f
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x34], eax
jmp 0x53135f
mov eax, dword [ebx + 0x78]
cmp dword [eax + 0x4c], 0
je 0x53134d
mov dword [ebp - 0x44], 1
jmp 0x53135f
mov eax, dword [ebx + 0x78]
cmp dword [eax + 0x3c], 0
jne 0x53135f
mov word [ebx + 0x148], 0
cmp dword [0x7d7fc8], 0
jne 0x531391
mov eax, dword [ebx + 0x78]
mov edx, eax
test edx, edx
je 0x531388
cmp dword [eax + 0x34], 0
jne 0x531388
movzx eax, word [ebx + 0x148]
test eax, eax
jne 0x531391
cmp dword [ebp - 0x44], 0
jne 0x531391
mov dword [ebp - 0x54], 1
jmp 0x531398
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x5313bf
movzx eax, word [ebx + 0xa2]
imul eax, dword [ebp - 0x3c]
push eax
call fcn.0049b580
pop ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x23c], eax
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x5313d8
movzx eax, word [ebx + 0x148]
test eax, eax
jne 0x5313d8
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x5313e8
push ebx
mov eax, dword [ebx]
call dword [eax + 0x18]
pop ecx
jmp 0x531406
mov eax, dword [ebp - 0x48]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
add esp, 8
cmp dword [ebp - 0x44], 0
je 0x531406
push 1
push ebx
mov eax, dword [ebx]
call dword [eax + 0x24]
add esp, 8
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 4], eax
jmp 0x531965
cmp dword [ebp - 0x38], 0
je 0x531574
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
ja 0x53196f
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x53143a
cmp eax, dword [ebp - 0x3c]
jl 0x5314db
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
cmp eax, edx
jb 0x53144f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
jmp 0x531459
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x53146d
mov edx, dword [ebp - 0x40]
cmp eax, edx
jae 0x53146d
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
push 0
mov eax, dword [ebp - 4]
dec eax
xor edx, edx
movzx ecx, word [ebx + 0xa2]
mov esi, ecx
mov edi, ecx
sar edi, 0x1f
push edx
push eax
push edi
push esi
call fcn.00533b40
movzx ecx, word [ebx + 0xa0]
mov esi, ecx
mov edi, ecx
sar edi, 0x1f
add esi, eax
adc edi, edx
push edi
push esi
mov eax, dword [ebx + 0x90]
push eax
call fcn.004b04b0
add esp, 0x10
movzx eax, word [ebx + 0xa2]
imul eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x23c]
push eax
mov eax, dword [ebx + 0x90]
push eax
call fcn.004af8b0
add esp, 0xc
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
movzx edx, word [ebx + 0xa2]
imul eax, edx
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x23c]
add eax, edx
mov dword [ebx + 0xd0], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0xd8], eax
push 0
push ebx
mov eax, dword [ebx]
call dword [eax + 0x54]
add esp, 8
movzx eax, ax
cmp eax, 1
je 0x53196f
mov dword [ebx + 0x100], 1
mov dword [ebx + 0xfc], 1
mov eax, dword [ebx + 0xd0]
movzx eax, byte [eax]
cmp eax, 0x2a
jne 0x531544
mov dword [ebp - 0x58], 1
jmp 0x53154b
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebx + 0x10c], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x531571
push ebx
mov eax, dword [ebx]
call dword [eax + 0xd4]
pop ecx
movzx eax, ax
cmp eax, 1
je 0x53196f
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5315a7
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x18]
cmp dword [ebp - 0x1c], eax
jl 0x5315a4
mov dword [ebp - 0x1c], 0
push 0
mov eax, dword [ebp - 0x14]
push eax
push ebx
call fcn.00521d40
add esp, 0xc
test eax, eax
je 0x53196f
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov edx, eax
test edx, edx
je 0x5315c5
push 0
push eax
push 0
call fcn.00521d40
add esp, 0xc
test eax, eax
je 0x53196f
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
ja 0x531915
mov eax, dword [ebp - 0x10]
mov edx, eax
test edx, edx
je 0x5315ee
push 0
push eax
push ebx
call fcn.00521d40
add esp, 0xc
test eax, eax
je 0x531915
mov eax, dword [ebp + 8]
cmp word [eax + 0x18], 0
je 0x53160f
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x18]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x58]
add esp, 0xc
jmp 0x53161f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
call fcn.00469e30
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a0870
pop ecx
mov dword [ebp - 0x64], eax
cmp eax, 0x20
je 0x5317b1
jg 0x531663
mov eax, dword [ebp - 0x64]
cmp eax, 8
je 0x5316c4
jg 0x531656
mov eax, dword [ebp - 0x64]
cmp eax, 2
je 0x5316c4
jmp 0x5318e1
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
je 0x5316c4
jmp 0x5318e1
mov eax, dword [ebp - 0x64]
cmp eax, 0x400
je 0x531690
jg 0x531682
mov eax, dword [ebp - 0x64]
cmp eax, 0x80
je 0x5318a2
jmp 0x5318e1
mov eax, dword [ebp - 0x64]
cmp eax, 0xc00
jne 0x5318e1
mov eax, dword [ebp - 0x20]
push eax
call fcn.0049f8d0
pop ecx
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.0049f900
pop ecx
push eax
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebx + 0xd8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00530b10
add esp, 0x10
jmp 0x531915
mov eax, dword [ebp - 0x20]
push eax
call fcn.0049fd50
pop ecx
fst qword [ebp - 0x70]
fstp qword [ebp - 0x60]
fld qword [0x6bc02c]
fcomp qword [ebp - 0x60]
wait
fnstsw ax
sahf
ja 0x531733
fld qword [0x6bc02c]
fcomp qword [ebp - 0x60]
wait
fnstsw ax
sahf
jne 0x5316fb
fld qword [0x6bc02c]
fstp qword [ebp - 0x60]
movzx eax, byte [ebp - 0x59]
xor eax, 0x80
mov byte [ebp - 0x2c], al
mov al, byte [ebp - 0x5a]
mov byte [ebp - 0x2b], al
mov al, byte [ebp - 0x5b]
mov byte [ebp - 0x2a], al
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x29], al
mov al, byte [ebp - 0x5d]
mov byte [ebp - 0x28], al
mov al, byte [ebp - 0x5e]
mov byte [ebp - 0x27], al
mov al, byte [ebp - 0x5f]
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x25], al
jmp 0x531793
movzx eax, byte [ebp - 0x59]
xor eax, 0xff
mov byte [ebp - 0x2c], al
movzx eax, byte [ebp - 0x5a]
xor eax, 0xff
mov byte [ebp - 0x2b], al
movzx eax, byte [ebp - 0x5b]
xor eax, 0xff
mov byte [ebp - 0x2a], al
movzx eax, byte [ebp - 0x5c]
xor eax, 0xff
mov byte [ebp - 0x29], al
movzx eax, byte [ebp - 0x5d]
xor eax, 0xff
mov byte [ebp - 0x28], al
movzx eax, byte [ebp - 0x5e]
xor eax, 0xff
mov byte [ebp - 0x27], al
movzx eax, byte [ebp - 0x5f]
xor eax, 0xff
mov byte [ebp - 0x26], al
movzx eax, byte [ebp - 0x60]
xor eax, 0xff
mov byte [ebp - 0x25], al
push 8
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0xd8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00530b10
add esp, 0x10
jmp 0x531915
mov eax, dword [ebp - 0x20]
push eax
call fcn.0049fa20
pop ecx
push eax
fild dword [esp]
add esp, 4
fstp qword [ebp - 0x60]
fld qword [0x6bc02c]
fcomp qword [ebp - 0x60]
wait
fnstsw ax
sahf
ja 0x531824
fld qword [0x6bc02c]
fcomp qword [ebp - 0x60]
wait
fnstsw ax
sahf
jne 0x5317ec
fld qword [0x6bc02c]
fstp qword [ebp - 0x60]
movzx eax, byte [ebp - 0x59]
xor eax, 0x80
mov byte [ebp - 0x2c], al
mov al, byte [ebp - 0x5a]
mov byte [ebp - 0x2b], al
mov al, byte [ebp - 0x5b]
mov byte [ebp - 0x2a], al
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x29], al
mov al, byte [ebp - 0x5d]
mov byte [ebp - 0x28], al
mov al, byte [ebp - 0x5e]
mov byte [ebp - 0x27], al
mov al, byte [ebp - 0x5f]
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x60]
mov byte [ebp - 0x25], al
jmp 0x531884
movzx eax, byte [ebp - 0x59]
xor eax, 0xff
mov byte [ebp - 0x2c], al
movzx eax, byte [ebp - 0x5a]
xor eax, 0xff
mov byte [ebp - 0x2b], al
movzx eax, byte [ebp - 0x5b]
xor eax, 0xff
mov byte [ebp - 0x2a], al
movzx eax, byte [ebp - 0x5c]
xor eax, 0xff
mov byte [ebp - 0x29], al
movzx eax, byte [ebp - 0x5d]
xor eax, 0xff
mov byte [ebp - 0x28], al
movzx eax, byte [ebp - 0x5e]
xor eax, 0xff
mov byte [ebp - 0x27], al
movzx eax, byte [ebp - 0x5f]
xor eax, 0xff
mov byte [ebp - 0x26], al
movzx eax, byte [ebp - 0x60]
xor eax, 0xff
mov byte [ebp - 0x25], al
push 8
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0xd8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00530b10
add esp, 0x10
jmp 0x531915
mov eax, dword [ebp - 0x20]
push eax
call fcn.0049fc50
pop ecx
test eax, eax
je 0x5318b9
mov dword [ebp - 0x74], 0x54
jmp 0x5318c0
mov dword [ebp - 0x74], 0x46
mov eax, dword [ebp - 0x74]
mov byte [ebp - 0x2c], al
push 1
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 0xd8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.00530b10
add esp, 0x10
jmp 0x531915
call fcn.0046d3e0
movzx eax, ax
test eax, eax
je 0x5318fd
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x34], 1
jmp 0x531915
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a0870
pop ecx
push eax
push str.hb_cdxTagDoIndex:_hb_itemType__pItem_____i
call fcn.00531e10
add esp, 8
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x531924
dec eax
mov dword [ebp - 0x34], eax
test eax, eax
je 0x53196f
cmp dword [ebp - 0x38], 0
je 0x531930
add dword [ebp - 4], 1
jmp 0x531965
push 1
push ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
add esp, 8
movzx eax, ax
cmp eax, 1
je 0x53196f
cmp dword [ebp - 0x44], 0
je 0x53195c
push 1
push ebx
mov eax, dword [ebx]
call dword [eax + 0x24]
add esp, 8
movzx eax, ax
cmp eax, 1
je 0x53196f
mov eax, dword [ebx + 0xd8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x28], 0
je 0x531414
mov eax, dword [ebp - 0x18]
push eax
call fcn.00530e40
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax + 0x18], 0
je 0x53198d
mov eax, dword [ebp - 0x20]
push eax
call fcn.0049f7d0
pop ecx
cmp dword [ebp - 0x38], 0
je 0x5319a9
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xd0], eax
mov eax, dword [ebp - 4]
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 0x10]
add esp, 8
mov ax, word [ebp - 0x4a]
mov word [ebx + 0x148], ax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x5319d0
cmp dword [ebp - 0x1c], 0
je 0x5319d0
push 0
mov eax, dword [ebp - 0x14]
push eax
push ebx
call fcn.00521d40
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call fcn.00530d80
pop ecx
mov dword [ebx + 0x14c], 0
mov eax, dword [ebp - 0x24]
mov dword [0x7c2174], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret