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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
and eax, 0x1e0
sub eax, 0x20
je 0x45afb6
sub eax, 0x20
je 0x45af01
sub eax, 0x40
jne 0x45b071
mov eax, dword [esp + 0x20]
mov edx, dword [edi + 0x18]
add eax, 4
mov ebp, dword [edi + 0xc]
mov edx, dword [edx + 4]
mov bx, word [eax]
mov cl, byte [eax + 2]
xor eax, eax
mov ax, word [edi + 0x14]
mov byte [esp + 0x22], cl
xor ecx, ecx
mov esi, eax
mov cx, word [edi + 0x12]
sub edx, ecx
dec eax
test esi, esi
je 0x45b071
lea ecx, [ecx + ecx*2]
lea edx, [edx + edx*2]
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
lea ecx, [eax + ebp]
cmp ebp, ecx
jae 0x45aee6
sub ecx, ebp
mov eax, 0xaaaaaaab
add ecx, 2
mov esi, ebp
mul ecx
shr edx, 1
mov ecx, ebp
lea edi, [ebp + 3]
lea eax, [edx + edx*2]
mov dl, byte [esp + 0x22]
mov word [ecx], bx
add ebp, eax
mov byte [ecx + 2], dl
lea ecx, [eax - 3]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add ebp, ecx
dec eax
mov dword [esp + 0x10], eax
jne 0x45aeb2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, dword [esp + 0x20]
mov esi, dword [edi + 0xc]
xor ebp, ebp
mov ax, word [eax + 8]
mov bp, word [edi + 0x12]
mov dword [esp + 0x14], eax
and eax, 0xffff
mov ecx, eax
shl ecx, 0x10
or ecx, eax
xor eax, eax
mov ax, word [edi + 0x14]
mov dword [esp + 0x18], ecx
mov ecx, dword [edi + 0x18]
mov edx, eax
mov ecx, dword [ecx + 4]
sub ecx, ebp
dec eax
test edx, edx
je 0x45b071
add ecx, ecx
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
lea ebx, [esi + ebp*2]
mov eax, ebx
sub eax, esi
sar eax, 1
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edx, eax
dec eax
test edx, edx
je 0x45af73
lea edx, [eax + 1]
mov eax, dword [esp + 0x18]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea esi, [esi + edx*4]
cmp esi, ebx
jae 0x45af9b
mov eax, dword [esp + 0x14]
sub ebx, esi
inc ebx
mov dx, ax
shr ebx, 1
shl edx, 0x10
mov ecx, ebx
mov dx, ax
mov edi, esi
mov eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
lea esi, [esi + ebx*2]
rep stosw word es:[edi], ax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
add esi, ecx
dec eax
mov dword [esp + 0x20], eax
jne 0x45af4a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov esi, dword [esp + 0x20]
mov bl, 1
test byte [esi + 0xc], bl
je 0x45afc6
mov al, byte [esi + 0xa]
jmp 0x45afcd
mov ecx, esi
call fcn.0048db10
mov byte [esp + 0x20], al
mov al, byte [esi + 0xc]
test bl, al
je 0x45afe1
mov cl, byte [esi + 0xa]
mov byte [esp + 0x10], cl
jmp 0x45afec
mov ecx, esi
call fcn.0048db10
mov byte [esp + 0x10], al
test byte [esi + 0xc], bl
je 0x45affa
mov dl, byte [esi + 0xa]
mov byte [esp + 0x14], dl
jmp 0x45b005
mov ecx, esi
call fcn.0048db10
mov byte [esp + 0x14], al
test byte [esi + 0xc], bl
je 0x45b00f
mov al, byte [esi + 0xa]
jmp 0x45b016
mov ecx, esi
call fcn.0048db10
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x18], al
call dword [edx + 0x78]
xor ecx, ecx
xor edx, edx
mov cx, word [edi + 0x14]
mov dx, word [edi + 0x12]
imul eax, ecx
imul eax, edx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
shl edx, 8
add edx, eax
mov eax, dword [esp + 0x1c]
shl edx, 8
and ecx, 0xff
and eax, 0xff
add edx, ecx
mov ecx, dword [edi + 0xc]
shl edx, 8
add edx, eax
call fcn.0040aa80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4