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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x74]
mov eax, dword [ebx + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004029e0
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
mov esi, dword [eax]
mov eax, dword [esi + 0x14]
cmp eax, 0x484fc0
je 0x45b458
mov dword [esp + 0x30], 0
cmp eax, 0x485080
je 0x45b480
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x45b2d8
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 8], esi
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x78]
mov dword [esp], ecx
mov dword [esp + 0xc], edi
call eax
cmp eax, 3
jne 0x45b475
mov eax, dword [ebx + 0xc]
mov ecx, dword [esp + 0x7c]
mov edi, dword [ebx + 8]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x3c], edx
mov dword [esp], ecx
mov dword [esp + 0x38], eax
call fcn.004029e0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00474d10
cmp eax, edi
sbb edx, dword [esp + 0x40]
mov eax, 2
jb 0x45b475
mov eax, dword [esi + 0x14]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test byte [eax + 0x11], 0x80
je 0x45b4c0
mov esi, dword [esp + 0x80]
mov edx, dword [eax + 0x40]
test esi, esi
je 0x45b4a0
mov ecx, dword [ebp + 0x24]
xor esi, esi
xor edi, edi
test ecx, ecx
jne 0x45b4a0
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x40], edx
add edx, dword [eax + 0x38]
mov dword [esp + 0x44], ecx
adc ecx, dword [eax + 0x3c]
mov eax, edx
add eax, dword [esp + 0x38]
mov edx, ecx
adc edx, dword [esp + 0x3c]
add esi, eax
mov eax, dword [ebp + 0x10]
adc edi, edx
test eax, eax
je 0x45b3ba
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x40]
sub esi, dword [eax + 0x38]
sbb edi, dword [eax + 0x3c]
mov eax, dword [ebp + 0x38]
sub esi, dword [ecx + 0x18]
sbb edi, dword [ecx + 0x1c]
test eax, eax
je 0x45b3ba
sub esi, dword [ebx + 8]
sbb edi, dword [ebx + 0xc]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x45b540
mov ecx, dword [esp + 0x7c]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
add eax, dword [ecx + 0x38]
adc edx, dword [ecx + 0x3c]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x45b508
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x70]
mov ecx, edi
mov dword [ebx + 0xc], edx
mov edx, esi
mov eax, dword [eax + 8]
cmp dword [eax + 4], 2
je 0x45b550
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], ecx
test eax, eax
jne 0x45b520
mov ecx, dword [ebp + 4]
shrd esi, edi, cl
mov eax, dword [esp + 0x2c]
shr edi, cl
mul dword [esp + 0x34]
xor edx, edx
test cl, 0x20
mov ecx, dword [ebp + 0x14]
cmovne esi, edi
cmovne edi, edx
xor ebx, ebx
shld edi, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, dword [ebp + 8]
cmovne edi, esi
cmovne esi, ebx
add ecx, 2
cmp ecx, 6
ja case.default.0x45b44d
jmp dword [ecx*4 + 0x48de44]
mov edi, dword [esp + 0x80]
test edi, edi
je 0x45b4d8
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x38]
add dword [ebx + 8], eax
adc dword [ebx + 0xc], edx
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x10]
and eax, 0x80
or eax, dword [esp + 0x80]
cmp eax, 1
sbb eax, eax
and eax, 6
mov dword [esp + 0x30], eax
jmp 0x45b291
xor esi, esi
xor edi, edi
test edx, edx
je 0x45b36f
mov esi, dword [edx + 0x18]
mov edi, dword [edx + 0x1c]
jmp 0x45b36f
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], esi
jmp 0x45b34e
mov dword [esp + 0x30], 0
cmp eax, 0x485080
jne 0x45b291
mov eax, dword [esi + 0x10]
and eax, 0x80
cmp eax, 1
sbb eax, eax
and eax, 6
mov dword [esp + 0x30], eax
jmp 0x45b291
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0xc], edx
jmp 0x45b475
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45b728
mov dword [esp + 0x30], 6
mov ecx, dword [ebp + 4]
jmp 0x45b413
xor edx, edx
xor ecx, ecx
jmp 0x45b3ff
mov eax, dword [eax]
mov dword [esp + 4], str.coff_Intel_little
mov dword [esp + 0x38], esi
mov dword [esp], eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], eax
call sub.msvcrt.dll_strcmp
mov edx, esi
mov ecx, edi
test eax, eax
je 0x45b3ff
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], str.coff_Intel_big
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
mov edx, esi
mov ecx, edi
test eax, eax
je 0x45b3ff
sub esi, dword [esp + 0x40]
sbb edi, dword [esp + 0x44]
xor edx, edx
xor ecx, ecx
jmp 0x45b3ff
mov ebx, dword [esp + 0x78]
add ebx, eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 8]
mov dword [esp], ebx
call dword [eax + 0x28]
mov edx, eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0x28]
and eax, edx
add eax, esi
xor eax, edx
and eax, dword [ebp + 0x30]
xor eax, edx
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call dword [ecx + 0x30]
mov eax, dword [esp + 0x30]
jmp 0x45b475
mov ebx, dword [esp + 0x78]
add ebx, eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 8]
mov dword [esp], ebx
call dword [eax + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 8]
mov dword [esp + 8], ebx
movzx eax, word [ebp + 0x28]
and eax, ecx
add eax, esi
xor eax, ecx
and ax, word [ebp + 0x30]
xor eax, ecx
cwde
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call dword [edx + 0x3c]
jmp case.0x45b44d.3
add eax, dword [esp + 0x78]
movzx edx, byte [ebp + 0x28]
movzx ecx, byte [eax]
and edx, ecx
add edx, esi
xor edx, ecx
and dl, byte [ebp + 0x30]
xor edx, ecx
mov byte [eax], dl
jmp case.0x45b44d.3
mov ebx, dword [esp + 0x78]
add ebx, eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 8]
mov dword [esp], ebx
call dword [eax + 0x34]
mov edx, eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0x28]
and eax, edx
sub eax, esi
xor eax, edx
and eax, dword [ebp + 0x30]
xor eax, edx
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call dword [ecx + 0x3c]
jmp case.0x45b44d.3
mov ebx, dword [esp + 0x78]
add ebx, eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 8]
mov dword [esp], ebx
call dword [eax + 0x28]
mov edx, eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0x28]
and eax, edx
sub eax, esi
jmp 0x45b5d7
mov ebx, dword [esp + 0x78]
add ebx, eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 8]
mov dword [esp], ebx
call dword [eax + 0x1c]
mov ecx, eax
and eax, dword [ebp + 0x28]
mov ebx, edx
and edx, dword [ebp + 0x2c]
add eax, esi
mov esi, dword [esp + 0x70]
adc edx, edi
mov edi, dword [esp + 0x2c]
xor eax, ecx
and eax, dword [ebp + 0x30]
mov esi, dword [esi + 8]
xor edx, ebx
and edx, dword [ebp + 0x34]
xor eax, ecx
xor edx, ebx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [esi + 0x24]
jmp case.0x45b44d.3
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00402950
mov ecx, dword [ebp + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call fcn.0045b020
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
jmp 0x45b413
mov eax, 5
jmp 0x45b475