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

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x7c]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x54], ecx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
mov cl, byte [eax + 0x24]
push ebp
test cl, cl
push esi
mov esi, dword [ebx + 0x28]
setne byte [esp + 0xf]
push edi
mov edi, dword [ebx + 4]
mov ecx, edi
sar ecx, 0x1f
mov eax, ecx
mov dword [esp + 0x58], edx
xor eax, edi
sub eax, ecx
mov edx, esi
sar edx, 0x1f
mov ecx, edx
xor ecx, esi
sub ecx, edx
cmp ecx, eax
mov dword [esp + 0x44], ecx
jg 0x45b390
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x2c]
mov ebp, eax
sar ebp, 0x1f
mov edx, ebp
xor edx, eax
mov dword [esp + 0x5c], eax
sub edx, ebp
mov eax, ecx
sar eax, 0x1f
mov ebp, eax
xor ebp, ecx
sub ebp, eax
cmp ebp, edx
jle 0x45b3b6
mov edx, ebp
cmp edx, 0x10000
jg 0x45b3cc
cmp dword [esp + 0x44], 0x10000
jle 0x45b963
mov ebx, dword [ebx + 4]
mov edx, ebx
sar edx, 0x1f
mov ebp, edx
mov eax, esi
sar eax, 0x1f
xor ebp, ebx
sub ebp, edx
mov edx, eax
xor edx, esi
sub edx, eax
cmp ebp, edx
mov dword [esp + 0x7c], ebx
jg 0x45b3f8
mov eax, esi
sar eax, 0x1f
mov edx, eax
xor edx, esi
jmp 0x45b401
mov eax, edi
sar eax, 0x1f
mov edx, eax
xor edx, edi
mov esi, dword [esp + 0x5c]
sub edx, eax
mov dword [esp + 0x48], edx
mov edx, ecx
sar edx, 0x1f
mov edi, edx
mov eax, esi
sar eax, 0x1f
xor edi, ecx
sub edi, edx
mov edx, eax
xor edx, esi
sub edx, eax
cmp edi, edx
jg 0x45b436
mov eax, esi
sar eax, 0x1f
mov ecx, eax
xor ecx, esi
sub ecx, eax
mov dword [esp + 0x4c], ecx
jmp 0x45b445
mov eax, ecx
sar eax, 0x1f
mov edx, eax
xor edx, ecx
sub edx, eax
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], ecx
movzx ecx, word [eax]
mov eax, dword [esp + 0x90]
test eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], ecx
je 0x45b963
mov bx, word [esp + 0x7c]
mov bp, word [esp + 0x7e]
mov di, word [esp + 0x80]
mov si, word [esp + 0x82]
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x8c]
mov eax, dword [edx]
mov ecx, eax
sar ecx, 0x10
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x48]
add ecx, eax
mov edx, ecx
sar edx, 0x10
mov dword [esp + 0x34], edx
or edx, 0xffffffff
sar eax, 8
sub edx, eax
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 4]
and edx, 0xff
mov dword [esp + 0x6c], edx
movzx edx, ch
mov ecx, eax
sar ecx, 0x10
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x70], edx
add ecx, eax
mov edx, ecx
sar edx, 0x10
mov dword [esp + 0x3c], edx
or edx, 0xffffffff
sar eax, 8
sub edx, eax
mov eax, dword [esp + 0x40]
and edx, 0xff
mov dword [esp + 0x74], edx
movzx edx, ch
xor ecx, ecx
mov dword [esp + 0x78], edx
cmp eax, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
jg 0x45b821
nop
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jg 0x45b730
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x64]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
and edx, 1
mov dword [esp + 0x68], edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
jmp 0x45b570
mov edx, dword [esp + 0x68]
jmp 0x45b570
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test edx, edx
mov edx, ecx
je 0x45b5a6
test edx, edx
jge 0x45b584
xor ecx, ecx
mov edx, dword [esp + 0x18]
test edx, edx
jge 0x45b58e
xor eax, eax
mov edx, dword [esp + 0x30]
cmp ecx, edx
jl 0x45b599
lea ecx, [edx - 1]
mov edx, dword [esp + 0x20]
cmp eax, edx
jl 0x45b5ea
lea eax, [edx - 1]
jmp 0x45b5ea
test edx, edx
jge 0x45b5b6
lea ebx, [ebx]
add ecx, dword [esp + 0x30]
js 0x45b5b0
mov edx, dword [esp + 0x30]
cmp ecx, edx
jl 0x45b5c6
mov edi, edi
sub ecx, edx
cmp ecx, edx
jge 0x45b5c0
mov edx, dword [esp + 0x18]
test edx, edx
jge 0x45b5d6
mov edi, edi
add eax, dword [esp + 0x20]
js 0x45b5d0
cmp eax, dword [esp + 0x20]
jl 0x45b5ea
lea esp, [esp]
mov edx, dword [esp + 0x20]
sub eax, edx
cmp eax, edx
jge 0x45b5e0
imul eax, dword [esp + 0x50]
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub edx, 3
je 0x45b657
dec edx
je 0x45b622
dec edx
jne 0x45b67f
mov eax, dword [eax + ecx*4]
mov esi, eax
mov ecx, eax
shr ecx, 0x10
mov edx, eax
shr esi, 0x18
shr edx, 8
movzx di, cl
movzx bp, dl
movzx bx, al
jmp 0x45b67f
movzx eax, word [eax + ecx*2]
mov ecx, eax
mov edx, eax
shr ecx, 0xa
shr edx, 5
and ecx, 0x1f
mov di, word [ecx*4 + 0x541098]
and edx, 0x1f
mov bp, word [edx*4 + 0x541098]
and eax, 0x1f
mov bx, word [eax*4 + 0x541098]
mov si, 0xff
jmp 0x45b690
movzx eax, byte [eax + ecx]
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 0x14]
movzx si, byte [edx + eax*4 + 3]
movzx di, byte [edx + eax*4 + 2]
movzx bp, byte [edx + eax*4 + 1]
movzx bx, byte [edx + eax*4]
lea eax, [edx + eax*4]
test si, si
jne 0x45b690
mov al, byte [esp + 0x13]
test al, al
je 0x45b717
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x44]
jne 0x45b6a0
mov eax, dword [esp + 0x6c]
jmp 0x45b6af
cmp eax, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
je 0x45b6af
mov eax, pe_nt_image_headers32
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x40]
jne 0x45b6c0
imul eax, dword [esp + 0x74]
jmp 0x45b6d0
cmp ecx, dword [esp + 0x3c]
jne 0x45b6cd
imul eax, dword [esp + 0x78]
jmp 0x45b6d0
shl eax, 8
mov edx, dword [esp + 0x24]
sar eax, 8
movzx ecx, di
imul ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], edx
movzx edx, bp
imul edx, eax
add ecx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
movzx ecx, bx
imul ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
movzx edx, si
imul edx, eax
add ecx, edx
mov dword [esp + 0x1c], ecx
add dword [esp + 0x38], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x45b564
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
inc eax
cmp eax, edx
mov dword [esp + 0x18], eax
jle 0x45b530
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45b7f8
xor edx, edx
cmp ecx, 0x10000
jae 0x45b7aa
mov eax, 0x1000000
div ecx
mov edx, dword [esp + 0x94]
mov ecx, eax
imul ecx, dword [esp + 0x24]
shr ecx, 0x18
mov word [edx + 4], cx
mov ecx, eax
imul ecx, dword [esp + 0x28]
shr ecx, 0x18
mov word [edx + 2], cx
mov ecx, dword [esp + 0x94]
mov edx, eax
imul eax, dword [esp + 0x1c]
imul edx, dword [esp + 0x2c]
shr edx, 0x18
shr eax, 0x18
mov word [ecx], dx
mov word [ecx + 6], ax
jmp 0x45b92b
mov eax, dword [esp + 0x24]
div ecx
mov edx, dword [esp + 0x94]
mov word [edx + 4], ax
mov eax, dword [esp + 0x28]
xor edx, edx
div ecx
mov edx, dword [esp + 0x94]
mov word [edx + 2], ax
mov eax, dword [esp + 0x2c]
xor edx, edx
div ecx
mov edx, dword [esp + 0x94]
mov word [edx], ax
mov eax, dword [esp + 0x1c]
xor edx, edx
div ecx
mov ecx, dword [esp + 0x94]
mov word [ecx + 6], ax
jmp 0x45b92b
test ecx, ecx
je 0x45b81d
mov al, byte [esp + 0x13]
test al, al
je 0x45b81d
mov eax, dword [esp + 0x94]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x45b92b
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
test ecx, ecx
jge 0x45b82d
xor ecx, ecx
jmp 0x45b83e
mov edx, dword [esp + 0x88]
mov edx, dword [edx + 0x18]
cmp ecx, edx
jl 0x45b83e
lea ecx, [edx - 1]
test eax, eax
jge 0x45b846
xor eax, eax
jmp 0x45b857
mov edx, dword [esp + 0x88]
mov edx, dword [edx + 0x1c]
cmp eax, edx
jl 0x45b857
lea eax, [edx - 1]
imul eax, dword [esp + 0x50]
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
sub edx, 3
je 0x45b8f0
dec edx
je 0x45b8aa
dec edx
jne 0x45b92b
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x94]
mov edx, eax
shr edx, 0x18
mov word [ecx + 6], dx
mov edx, eax
shr edx, 0x10
movzx dx, dl
mov word [ecx + 4], dx
mov edx, eax
shr edx, 8
movzx dx, dl
mov word [ecx + 2], dx
movzx ax, al
jmp 0x45b928
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x94]
mov edx, eax
shr edx, 0xa
and edx, 0x1f
mov word [ecx + 6], 0xff
mov dx, word [edx*4 + 0x541098]
mov word [ecx + 4], dx
mov edx, eax
shr edx, 5
and edx, 0x1f
mov dx, word [edx*4 + 0x541098]
and eax, 0x1f
mov word [ecx + 2], dx
mov ax, word [eax*4 + 0x541098]
jmp 0x45b928
movzx ecx, byte [eax + ecx]
mov edx, dword [esp + 0x88]
mov eax, dword [edx + 0x14]
movzx dx, byte [eax + ecx*4 + 3]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x94]
mov word [ecx + 6], dx
movzx dx, byte [eax + 2]
mov word [ecx + 4], dx
movzx dx, byte [eax + 1]
mov word [ecx + 2], dx
movzx ax, byte [eax]
mov word [ecx], ax
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x7c]
add eax, 8
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x8c]
mov edx, dword [eax]
add edx, ecx
mov ecx, dword [eax + 4]
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
add ecx, edx
mov dword [eax + 4], ecx
dec dword [esp + 0x60]
jne 0x45b492
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret