Function at 0x485330
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov word [esp + 0x7c], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
test ecx, ecx
je 0x4853f8
mov eax, ecx
and eax, 3
mov esi, ecx
xor ecx, ecx
cmp esi, 4
jb 0x4853ae
mov ebx, dword [ebp + 0x10]
and ebx, 0xfffffffc
xor ecx, ecx
nop word [eax + eax]
movzx esi, word [edx + ecx*2]
inc word [esp + esi*2 + 0x40]
movzx esi, word [edx + ecx*2 + 2]
inc word [esp + esi*2 + 0x40]
movzx esi, word [edx + ecx*2 + 4]
inc word [esp + esi*2 + 0x40]
movzx esi, word [edx + ecx*2 + 6]
inc word [esp + esi*2 + 0x40]
add ecx, 4
cmp ebx, ecx
jne 0x485380
test eax, eax
je 0x4853ce
lea ecx, [edx + ecx*2]
xor esi, esi
nop word [eax + eax]
movzx edi, word [ecx + esi*2]
inc word [esp + edi*2 + 0x40]
inc esi
cmp eax, esi
jne 0x4853c0
movzx esi, word [esp + 0x5e]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edi, 0xf
test si, si
jne 0x4854c3
cmp word [esp + 0x5c], 0
je 0x485402
mov edi, 0xe
jmp 0x4854c1
mov ecx, dword [eax]
cmp word [esp + 0x5c], 0
jne 0x4853ee
cmp word [esp + 0x5a], 0
je 0x485414
mov edi, 0xd
jmp 0x4854c1
cmp word [esp + 0x58], 0
je 0x485426
mov edi, 0xc
jmp 0x4854c1
cmp word [esp + 0x56], 0
je 0x485438
mov edi, 0xb
jmp 0x4854c1
cmp word [esp + 0x54], 0
je 0x485447
mov edi, 0xa
jmp 0x4854c1
cmp word [esp + 0x52], 0
je 0x485456
mov edi, 9
jmp 0x4854c1
cmp word [esp + 0x50], 0
je 0x485465
mov edi, 8
jmp 0x4854c1
cmp word [esp + 0x4e], 0
je 0x485474
mov edi, 7
jmp 0x4854c1
cmp word [esp + 0x4c], 0
je 0x485483
mov edi, 6
jmp 0x4854c1
cmp word [esp + 0x4a], 0
je 0x485492
mov edi, 5
jmp 0x4854c1
cmp word [esp + 0x48], 0
je 0x4854a1
mov edi, 4
jmp 0x4854c1
cmp word [esp + 0x46], 0
je 0x4854b0
mov edi, 3
jmp 0x4854c1
cmp word [esp + 0x44], 0
je 0x485af2
mov edi, 2
xor esi, esi
mov dword [esp + 4], esi
cmp ecx, edi
cmovae ecx, edi
mov edx, 1
nop word cs:[eax + eax]
mov bl, 1
cmp word [esp + edx*2 + 0x40], 0
jne 0x4854f1
inc edx
cmp edi, edx
jne 0x4854e0
mov edx, edi
cmp ecx, edx
cmovbe ecx, edx
mov dword [esp + 8], ecx
movzx ecx, word [esp + 0x42]
mov eax, 0xffffffff
cmp ecx, 2
ja 0x485792
movzx eax, word [esp + 0x44]
lea esi, [eax + ecx*2]
cmp esi, 4
ja 0x48578d
mov dword [esp + 0x30], ecx
movzx ecx, word [esp + 0x46]
mov dword [esp + 0x14], ecx
lea esi, [ecx + esi*2]
cmp esi, 8
ja 0x48578d
movzx ecx, word [esp + 0x48]
lea esi, [ecx + esi*2]
cmp esi, 0x10
jg 0x48578d
mov dword [esp + 0x10], ecx
movzx ecx, word [esp + 0x4a]
mov dword [esp + 0x78], ecx
lea esi, [ecx + esi*2]
mov ecx, 0x20
sub ecx, esi
js 0x48578d
mov esi, ecx
mov dword [esp + 0x1c], eax
add esi, ecx
movzx eax, word [esp + 0x4c]
mov dword [esp + 0xc], eax
sub esi, eax
mov eax, 0xffffffff
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x4e]
mov dword [esp + 0x3c], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x50]
mov dword [esp + 0x74], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x52]
mov dword [esp + 0x2c], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x54]
mov dword [esp + 0x38], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x56]
mov dword [esp + 0x70], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x58]
mov dword [esp + 0x28], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x5a]
mov dword [esp + 0x24], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 0x5c]
mov dword [esp + 0x18], ecx
sub esi, ecx
js 0x485792
add esi, esi
movzx ecx, word [esp + 4]
mov dword [esp + 4], esi
cmp esi, ecx
jb 0x485792
cmp dword [ebp + 8], 0
sete byte [esp + 0x20]
cmp dword [esp + 4], ecx
je 0x485647
or byte [esp + 0x20], bl
jne 0x485792
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add esi, eax
mov word [esp + 0x7e], 0
mov word [esp + 0x80], ax
mov eax, dword [esp + 0x14]
add eax, esi
mov word [esp + 0x82], si
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add ecx, eax
mov word [esp + 0x84], ax
mov eax, dword [esp + 0x78]
add eax, ecx
mov word [esp + 0x86], cx
add esi, eax
mov word [esp + 0x88], ax
mov eax, dword [esp + 0x3c]
add eax, esi
mov word [esp + 0x8a], si
add ebx, eax
mov word [esp + 0x8c], ax
mov eax, dword [esp + 0x2c]
add eax, ebx
mov word [esp + 0x8e], bx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov word [esp + 0x90], ax
mov eax, dword [esp + 0x70]
add eax, ecx
mov word [esp + 0x92], cx
mov ecx, dword [esp + 0x28]
add ecx, eax
mov word [esp + 0x94], ax
mov eax, dword [esp + 0x24]
add eax, ecx
mov word [esp + 0x96], cx
mov ecx, dword [esp + 0x18]
add ecx, eax
mov word [esp + 0x98], ax
mov word [esp + 0x9a], cx
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x485749
xor ecx, ecx
cmp esi, 1
jne 0x485a93
mov ebx, dword [ebp + 0x10]
test bl, 1
je 0x485749
mov eax, dword [ebp + 0xc]
movzx esi, word [eax + ecx*2]
test esi, esi
je 0x485749
movzx eax, word [esp + esi*2 + 0x7c]
lea ebx, [eax + 1]
mov word [esp + esi*2 + 0x7c], bx
mov esi, dword [ebp + 0x1c]
mov word [esi + eax*2], cx
mov eax, dword [ebp + 8]
test eax, eax
je 0x48579a
cmp eax, 1
jne 0x485a4e
mov eax, 1
cmp dword [esp + 8], 0xa
ja 0x485792
mov cl, 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], 0x101
mov dword [esp + 0x28], 0x4ae0d0
mov dword [esp + 0x24], 0x4ae092
mov dword [esp + 0x6c], 0
jmp 0x4857bd
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x6c], 0
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], 0
mov esi, 1
mov ebx, dword [esp + 8]
mov ecx, ebx
shl esi, cl
mov dword [esp + 0x20], esi
lea ecx, [esi - 1]
mov dword [esp + 0x70], ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x1c], 0
mov ecx, ebx
mov dword [esp + 0xc], 0
xor ebx, ebx
mov esi, 1
shl esi, cl
mov dword [esp + 0x3c], esi
mov dword [esp + 0x18], eax
add eax, 2
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], ebx
mov eax, edx
sub eax, dword [esp + 0xc]
mov dword [esp + 4], eax
mov ecx, dword [ebp + 0x1c]
mov esi, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2]
movzx ecx, ax
lea esi, [ecx + 1]
mov ebx, dword [esp + 0x2c]
cmp esi, ebx
jae 0x485841
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], 0
jmp 0x485871
mov esi, ebx
cmp ebx, ecx
jbe 0x485857
mov al, 0x60
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0
jmp 0x485871
sub ecx, esi
mov esi, dword [esp + 0x28]
movzx eax, byte [esi + ecx*2]
mov dword [esp + 0x30], eax
mov esi, dword [esp + 0x24]
movzx eax, word [esi + ecx*2]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov eax, 0xffffffff
shl eax, cl
mov ecx, dword [esp + 0xc]
shr esi, cl
mov dword [esp + 0x78], eax
lea ecx, [eax*4]
lea ecx, [ecx + esi*4]
add ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x3c]
mov ebx, esi
nop
mov eax, dword [esp + 0x30]
mov byte [ecx + esi*4 - 2], al
mov eax, dword [esp + 4]
mov byte [ecx + esi*4 - 1], al
mov eax, dword [esp + 0x14]
mov word [ecx + esi*4], ax
add ebx, dword [esp + 0x78]
mov esi, ebx
jne 0x4858a0
mov ecx, edx
dec cl
mov esi, 1
shl esi, cl
mov ebx, dword [esp + 0x10]
nop
mov ecx, esi
shr esi, 1
test ecx, ebx
jne 0x4858d0
lea esi, [ecx - 1]
and esi, ebx
add esi, ecx
cmp ecx, 1
mov ebx, esi
mov ecx, 0
cmovb ebx, ecx
dec word [esp + edx*2 + 0x40]
je 0x4858fd
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x1c]
jmp 0x48591c
cmp edx, edi
mov ecx, dword [esp + 8]
je 0x485a17
mov eax, dword [ebp + 0x1c]
mov esi, dword [esp + 0x1c]
movzx eax, word [eax + esi*2 + 2]
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + eax*2]
inc esi
mov dword [esp + 0x1c], esi
cmp edx, ecx
jbe 0x48580c
mov ecx, ebx
and ecx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x38]
je 0x48580c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
test eax, eax
cmove eax, dword [esp + 8]
mov ecx, edx
mov dword [esp + 0xc], eax
sub ecx, eax
mov esi, 1
mov dword [esp + 4], ecx
shl esi, cl
cmp edx, edi
jae 0x485994
mov eax, edi
sub eax, dword [esp + 0xc]
mov dword [esp + 4], eax
mov eax, edx
movzx ecx, word [esp + eax*2 + 0x40]
sub esi, ecx
jle 0x485981
add esi, esi
inc eax
cmp eax, edi
jb 0x48596f
jmp 0x485989
sub eax, dword [esp + 0xc]
mov dword [esp + 4], eax
mov esi, 1
mov ecx, dword [esp + 4]
shl esi, cl
mov ebx, dword [esp + 0x20]
add ebx, esi
cmp ebx, 0x535
setae ch
mov dword [esp + 0x20], ebx
cmp ebx, 0x251
setae cl
mov eax, 1
test byte [esp + 0x34], ch
jne 0x485792
and cl, byte [esp + 0x6c]
jne 0x485792
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
lea eax, [eax + ecx*4]
mov dword [esp + 0x18], eax
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 4]
mov byte [eax + ecx*4], bl
mov eax, dword [esi]
mov ebx, dword [esp + 8]
mov byte [eax + ecx*4 + 1], bl
mov eax, dword [esi]
mov ebx, dword [esp + 0x18]
mov esi, ebx
sub esi, eax
shr esi, 2
mov word [eax + ecx*4 + 2], si
mov eax, ebx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x10]
jmp 0x4857f6
test ebx, ebx
je 0x485a32
mov ecx, dword [esp + 0x18]
mov byte [ecx + ebx*4], 0x40
mov eax, dword [esp + 4]
mov byte [ecx + ebx*4 + 1], al
mov word [ecx + ebx*4 + 2], 0
mov ecx, dword [esp + 0x20]
shl ecx, 2
mov eax, dword [ebp + 0x14]
add dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
xor eax, eax
jmp 0x485792
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x4ae14e
mov dword [esp + 0x24], 0x4ae10e
cmp eax, 2
sete cl
mov dword [esp + 0x6c], ecx
jne 0x4857b5
mov eax, 1
mov dword [esp + 0x34], 0
cmp dword [esp + 8], 9
ja 0x485792
jmp 0x4857bd
mov ecx, dword [ebp + 0x10]
and ecx, 0xfffffffe
mov dword [esp + 4], ecx
xor ecx, ecx
jmp 0x485aae
add ecx, 2
cmp dword [esp + 4], ecx
je 0x485722
mov eax, dword [ebp + 0xc]
movzx esi, word [eax + ecx*2]
test esi, esi
je 0x485acd
movzx eax, word [esp + esi*2 + 0x7c]
lea ebx, [eax + 1]
mov word [esp + esi*2 + 0x7c], bx
mov esi, dword [ebp + 0x1c]
mov word [esi + eax*2], cx
mov eax, dword [ebp + 0xc]
movzx esi, word [eax + ecx*2 + 2]
test esi, esi
je 0x485aa1
movzx eax, word [esp + esi*2 + 0x7c]
lea ebx, [eax + 1]
mov word [esp + esi*2 + 0x7c], bx
lea esi, [ecx + 1]
mov ebx, dword [ebp + 0x1c]
mov word [ebx + eax*2], si
jmp 0x485aa1
cmp word [esp + 0x42], 0
je 0x485b1c
xor eax, eax
test ecx, ecx
setne al
mov edi, 1
xor ebx, ebx
mov ecx, eax
mov dword [esp + 4], 0
mov edx, 1
jmp 0x4854f1
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov dword [eax], 0x140
mov eax, dword [edx]
lea ecx, [eax + 4]
mov dword [edx], ecx
mov dword [eax], 0x140
mov dword [esp + 8], 1
jmp 0x485a3e