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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov edx, dword [ebp + 8]
mov ecx, dword [0xd5ef10]
mov al, 1
cmp al, byte [edx + 1]
push ebx
push esi
sbb esi, esi
and esi, dword [0xd5ef14]
push edi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], esi
test ecx, ecx
je 0x10048874
push 1
push 0
push 0xffffffffffffffff
push 0
call fcn.100811b0
test esi, esi
je 0x10048887
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.100811b0
mov eax, dword [0xd5b4d8]
movzx edi, word [eax + 0xc8]
xor esi, esi
xor ebx, ebx
and edi, 3
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ebx
cmp edi, 2
je 0x1004890f
call dword [0xd49670]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1004890f
mov ecx, eax
push ecx
call dword [0xd495e8]
test eax, eax
jne 0x1004890f
test edi, edi
jne 0x100488d8
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x7c]
push edx
push eax
call dword [0xd494f4]
jmp 0x100488f8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
xor eax, eax
push ecx
push edx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call dword [0xd49448]
test eax, eax
je 0x1004890f
add esi, dword [esp + 0x7c]
add ebx, dword [esp + 0x80]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ebx
mov edi, dword [ebp + 0x1c]
add dword [ebp + 0xc], esi
add dword [ebp + 0x10], ebx
add dword [ebp + 0x14], esi
add dword [ebp + 0x18], ebx
xor eax, eax
push 0x2e
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
call fcn.1009389f
mov esi, eax
add esp, 8
test esi, esi
je 0x10048996
inc esi
push 0xd53de0
push esi
call fcn.10090dd3
add esp, 8
test eax, eax
je 0x10048980
push 0xd4fac8
push esi
call fcn.10090dd3
add esp, 8
test eax, eax
je 0x10048980
push 0xd53de4
push esi
call fcn.10090dd3
add esp, 8
test eax, eax
jne 0x10048996
mov esi, dword [0xd4956c]
push 0x31
call esi
push 0x32
mov dword [esp + 0x2c], eax
call esi
mov dword [esp + 0x24], eax
mov ebx, edi
mov al, byte [ebx]
cmp al, 0x20
je 0x100489a2
cmp al, 9
jne 0x100489a5
inc ebx
jmp 0x10048998
cmp byte [ebx], 0x2a
jne 0x10048c2f
movsx eax, byte [ebx + 1]
inc ebx
push eax
call fcn.10094d5b
add esp, 4
cmp eax, 0x48
je 0x10048b72
cmp eax, 0x57
je 0x10048b04
push 4
push 0xd4fed0
push ebx
call fcn.10091104
add esp, 0xc
test eax, eax
jne 0x10048a15
add ebx, 4
mov eax, ebx
call fcn.1000b6a0
test al, al
je 0x10048a06
push 0x10
push 0
push ebx
call fcn.100917d3
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x10048bda
push ebx
call fcn.10091587
mov dword [esp + 0x1c], eax
jmp 0x10048bd7
push 5
push 0xd501cc
push ebx
call fcn.10091104
add esp, 0xc
test eax, eax
jne 0x10048ab0
push 0x1f
add ebx, 5
lea ecx, [esp + 0xac]
push ebx
push ecx
call fcn.10094300
add esp, 0xc
mov edi, 0xd4f808
lea eax, [esp + 0xa8]
mov byte [esp + 0xc7], 0
call fcn.100046f0
test eax, eax
je 0x10048a63
mov byte [eax], 0
lea esi, [esp + 0xa8]
call fcn.1007f7d0
cmp eax, 0xffffffff
jne 0x10048a8c
push 0x10
mov edx, esi
push 0
push edx
call fcn.100917d3
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x10048bda
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ecx, cl
shl edx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
mov dword [esp + 0x2c], ecx
jmp 0x10048bda
mov eax, ebx
call fcn.1000b6a0
test al, al
je 0x10048ace
push 0x10
push 0
push ebx
call fcn.100917d3
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x10048adb
push ebx
call fcn.10091587
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jns 0x10048aec
mov dword [esp + 0x14], 0
jmp 0x10048bda
cmp eax, 0xff
jle 0x10048bda
mov dword [esp + 0x14], 0xff
jmp 0x10048bda
lea esi, [ebx + 1]
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0x20
je 0x10048b1c
cmp cl, 9
jne 0x10048b1f
inc eax
jmp 0x10048b10
mov cl, byte [eax]
test cl, cl
je 0x10048b66
cmp cl, 0x2d
je 0x10048b2f
cmp cl, 0x2b
jne 0x10048b30
inc eax
cmp byte [eax], 0x30
jne 0x10048b66
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x10048b42
cmp cl, 0x58
jne 0x10048b66
movsx ecx, byte [eax + 2]
push ecx
call fcn.100934d1
add esp, 4
test eax, eax
je 0x10048b66
push 0x10
push 0
push esi
call fcn.100917d3
add esp, 0xc
mov dword [esp + 0x28], eax
jmp 0x10048bda
push esi
call fcn.10091587
mov dword [esp + 0x2c], eax
jmp 0x10048bd7
lea esi, [ebx + 1]
mov eax, esi
mov cl, byte [eax]
cmp cl, 0x20
je 0x10048b83
cmp cl, 9
jne 0x10048b86
inc eax
jmp 0x10048b77
mov cl, byte [eax]
test cl, cl
je 0x10048bcd
cmp cl, 0x2d
je 0x10048b96
cmp cl, 0x2b
jne 0x10048b97
inc eax
cmp byte [eax], 0x30
jne 0x10048bcd
mov cl, byte [eax + 1]
cmp cl, 0x78
je 0x10048ba9
cmp cl, 0x58
jne 0x10048bcd
movsx edx, byte [eax + 2]
push edx
call fcn.100934d1
add esp, 4
test eax, eax
je 0x10048bcd
push 0x10
push 0
push esi
call fcn.100917d3
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x10048bda
push esi
call fcn.10091587
mov dword [esp + 0x28], eax
add esp, 4
test ebx, ebx
je 0x10048d06
mov dl, byte [ebx]
test dl, dl
je 0x10048d06
lea esp, [esp]
mov ecx, 0xd4f808
mov al, 0x20
cmp dl, al
je 0x10048c10
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x10048bf7
mov dl, byte [ebx + 1]
inc ebx
test dl, dl
jne 0x10048bf0
jmp 0x10048d06
lea edi, [ebx + 1]
mov eax, edi
mov cl, byte [eax]
cmp cl, 0x20
je 0x10048c21
cmp cl, 9
jne 0x10048c24
inc eax
jmp 0x10048c15
cmp byte [eax], 0x2a
mov ebx, eax
je 0x100489ae
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
xor ebx, ebx
push ebx
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x44]
push ecx
push edx
push eax
push edi
call fcn.1007fcb0
mov esi, eax
add esp, 0x18
mov dword [esp + 0x6c], esi
cmp esi, ebx
je 0x10048d06
push ebx
call dword [0xd49530]
mov edi, eax
mov dword [esp + 0x54], edi
cmp edi, ebx
jne 0x10048c7a
push esi
call dword [0xd490ac]
jmp 0x10048d06
cmp dword [esp + 0x3c], 1
mov dword [esp + 0x74], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x70], ebx
mov byte [esp + 0x11], bl
jne 0x10048d51
lea ecx, [esp + 0x94]
push ecx
push esi
call dword [0xd4950c]
test eax, eax
je 0x10048cf3
push 1
lea edx, [esp + 0x16]
push edx
mov edx, dword [esp + 0xa8]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
mov eax, edi
call fcn.10047ef0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb8]
add esp, 0x14
push eax
call dword [0xd490ac]
mov ecx, dword [esp + 0xa0]
push ecx
call dword [0xd490ac]
push esi
call fcn.100804d0
mov esi, eax
add esp, 4
mov dword [esp + 0x6c], eax
cmp esi, ebx
jne 0x10048d51
mov edx, dword [0xd5b4d8]
cmp byte [edx + 0xe0], 0
jne 0x10048d34
mov ecx, dword [0xd5f780]
push 1
push 0
push 0xffffffffffffffff
push 0xd4f83c
call fcn.100811b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [ebp + 8]
push 0xd4bc99
push 0
push 0xd4f83c
call fcn.1003ec60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 8
lea eax, [esp + 0x16]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x4c]
push edx
push esi
mov eax, edi
call fcn.10047ef0
add esp, 0x14
mov dword [esp + 0x34], eax
cmp eax, ebx
je 0x10048fb7
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov eax, dword [esp + 0x54]
sub esi, dword [ebp + 0xc]
sub ebx, dword [ebp + 0x10]
push eax
inc esi
inc ebx
call dword [0xd490d0]
mov edi, eax
mov dword [esp + 0x74], edi
test edi, edi
je 0x10048fb7
mov ecx, dword [esp + 0x54]
push ebx
push esi
push ecx
call dword [0xd490c4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10048fb7
mov edx, eax
push edx
push edi
call dword [0xd490f4]
mov dword [esp + 0x70], eax
test eax, eax
je 0x10048fb7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x54]
push 0xcc0020
push eax
push ecx
push edx
push ebx
push esi
push 0
push 0
push edi
call dword [0xd49090]
test eax, eax
je 0x10048fb7
push 8
lea eax, [esp + 0x17]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x3c]
push edx
push eax
mov eax, edi
call fcn.10047ef0
mov edx, eax
add esp, 0x14
mov dword [esp + 0x24], edx
test edx, edx
je 0x10048fb7
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x30]
imul ecx, dword [esp + 0x50]
imul esi, dword [esp + 0x60]
cmp byte [esp + 0x12], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], esi
jne 0x10048e4c
cmp byte [esp + 0x13], 0
je 0x10048e8e
cmp dword [esp + 0x2c], 0xffffffff
je 0x10048e5b
and dword [esp + 0x2c], 0xf8f8f8
xor eax, eax
test esi, esi
jle 0x10048e6d
and dword [edx + eax*4], 0xf8f8f8
inc eax
cmp eax, esi
jl 0x10048e61
mov edi, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
jle 0x10048ea9
jmp 0x10048e80
and dword [edi + eax*4], 0xf8f8f8
inc eax
cmp eax, ecx
jl 0x10048e80
jmp 0x10048e92
mov edi, dword [esp + 0x34]
test ecx, ecx
jle 0x10048ea9
lea eax, [edi + 3]
lea esp, [esp]
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x10048ea0
mov ebx, dword [esp + 0x14]
cmp ebx, 1
jge 0x1004906c
test esi, esi
jle 0x10048ec9
lea eax, [edx + 3]
mov ecx, esi
nop
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x10048ec0
xor esi, esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x4c], esi
jle 0x10049251
mov ebx, dword [edi]
mov dword [esp + 0x3c], ebx
nop
mov ecx, dword [esp + 0x24]
lea edi, [esi*4]
cmp dword [edi + ecx], ebx
je 0x10048f07
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10048efd
cmp dword [eax], 0
jne 0x10048f07
cmp ebx, dword [esp + 0x2c]
jne 0x10049058
mov ecx, dword [esp + 0x30]
mov eax, esi
cdq
idiv ecx
mov esi, dword [esp + 0x60]
sub esi, eax
cmp dword [esp + 0x50], esi
jg 0x10049054
sub ecx, edx
cmp dword [esp + 0x40], ecx
jg 0x10049054
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov byte [esp + 0x11], 1
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x48], ebx
jle 0x10048fbb
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
sub edx, eax
mov byte [esp + 0x11], 1
mov ecx, esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x5c], edx
lea ebx, [ebx]
mov edx, dword [eax]
mov edi, dword [esp + 0x24]
cmp dword [edi + esi*4], edx
je 0x10048f86
cmp dword [esp + 0x38], 0
je 0x10048f7c
mov edi, dword [esp + 0x5c]
cmp dword [edi + eax], 0
jne 0x10048f86
cmp edx, dword [esp + 0x2c]
jne 0x1004904b
inc ebx
cmp ebx, dword [esp + 0x40]
jge 0x10048f90
inc esi
jmp 0x10048fa5
mov edx, dword [esp + 0x30]
lea esi, [edx*4]
add dword [esp + 0x44], esi
xor ebx, ebx
add ecx, edx
mov esi, ecx
mov edx, dword [esp + 0x28]
inc edx
add eax, 4
mov dword [esp + 0x28], edx
cmp edx, dword [esp + 0x48]
jl 0x10048f60
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x54]
push edx
push 0
call dword [0xd4952c]
mov eax, dword [esp + 0x6c]
mov ebx, dword [0xd490ac]
push eax
call ebx
mov edi, dword [esp + 0x74]
test edi, edi
je 0x10048ff4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x10048fed
push eax
push edi
call dword [0xd490f4]
push edi
call dword [0xd490e4]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10048fff
push eax
call ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10049010
push eax
call fcn.100918f3
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10049021
push eax
call fcn.100918f3
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10049032
push eax
call fcn.100918f3
add esp, 4
cmp byte [esp + 0x11], 0
jne 0x1004926c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [esp + 0x3c]
mov byte [esp + 0x11], 0
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x4c]
jl 0x10048ee0
jmp 0x10049251
xor esi, esi
mov dword [esp + 0x20], esi
cmp dword [esp + 0x4c], esi
jle 0x10049251
mov ecx, dword [esp + 0x30]
mov eax, esi
cdq
idiv ecx
mov edi, dword [esp + 0x60]
sub edi, eax
cmp dword [esp + 0x50], edi
jg 0x10049242
mov eax, ecx
sub eax, edx
cmp dword [esp + 0x40], eax
jg 0x10049242
xor eax, eax
mov byte [esp + 0x11], 1
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], esi
cmp dword [esp + 0x48], eax
jle 0x10048fbb
mov eax, dword [esp + 0x34]
lea ecx, [esi*4]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov byte [esp + 0x11], 1
mov dword [esp + 0x3c], esi
mov edi, eax
mov dword [esp + 0x5c], ecx
movzx eax, byte [edi + 2]
mov dl, byte [edi + 1]
cmp ebx, eax
jle 0x100490f6
mov byte [esp + 0x12], 0
jmp 0x100490fe
mov cl, al
sub cl, bl
mov byte [esp + 0x12], cl
movzx edx, dl
mov dword [esp + 0x7c], edx
cmp ebx, edx
jle 0x10049110
mov byte [esp + 0x1f], 0
jmp 0x1004911e
mov ebx, dword [esp + 0x14]
mov cl, dl
sub cl, byte [esp + 0x14]
mov byte [esp + 0x1f], cl
movzx ecx, byte [edi]
cmp ebx, ecx
jle 0x1004912c
mov byte [esp + 0x1c], 0
jmp 0x1004913a
mov dl, cl
sub dl, byte [esp + 0x14]
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x14]
mov esi, 0xff
sub esi, eax
cmp ebx, esi
jle 0x10049154
mov eax, 0xff
mov byte [esp + 0x1e], al
jmp 0x1004915f
add al, bl
mov byte [esp + 0x1e], al
mov eax, 0xff
mov esi, eax
sub esi, edx
cmp ebx, esi
jle 0x1004916d
mov byte [esp + 0x1d], al
jmp 0x10049173
add dl, bl
mov byte [esp + 0x1d], dl
mov edx, eax
sub edx, ecx
cmp ebx, edx
jle 0x10049181
mov byte [esp + 0x13], al
jmp 0x10049187
add cl, bl
mov byte [esp + 0x13], cl
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x44]
mov cl, byte [eax + esi*4 + 2]
mov dl, byte [eax + esi*4 + 1]
mov al, byte [eax + esi*4]
cmp cl, byte [esp + 0x12]
jb 0x100491be
cmp cl, byte [esp + 0x1e]
ja 0x100491be
cmp dl, byte [esp + 0x1f]
jb 0x100491be
cmp dl, byte [esp + 0x1d]
ja 0x100491be
cmp al, byte [esp + 0x1c]
jb 0x100491be
cmp al, byte [esp + 0x13]
jbe 0x100491d7
cmp dword [esp + 0x38], 0
je 0x100491cf
mov eax, dword [esp + 0x5c]
cmp dword [edi + eax], 0
jne 0x100491d7
mov ecx, dword [esp + 0x2c]
cmp dword [edi], ecx
jne 0x10049231
mov eax, dword [esp + 0x58]
inc eax
mov dword [esp + 0x58], eax
cmp eax, dword [esp + 0x40]
jge 0x100491ed
inc esi
mov dword [esp + 0x44], esi
jmp 0x10049212
mov eax, dword [esp + 0x30]
lea ecx, [eax*4]
add dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x28]
inc eax
add edi, 4
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x48]
jge 0x10048fb7
mov ebx, dword [esp + 0x14]
jmp 0x100490e4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x11], 0
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x4c]
jl 0x10049080
mov ecx, dword [0xd5f780]
push 1
push 0
push 0xffffffffffffffff
push 0xd4c008
call fcn.100811b0
jmp 0x10048fbb
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x10049293
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x68]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.10001cd0
mov ecx, dword [esp + 0x90]
test ecx, ecx
je 0x100492b8
mov eax, esi
cdq
idiv dword [esp + 0x30]
push 0x18
sub eax, dword [esp + 0x6c]
add eax, dword [ebp + 0x10]
cdq
push edx
push eax
mov eax, ecx
call fcn.10001cd0
mov ecx, dword [0xd5f780]
push 1
push 0
push 0xffffffffffffffff
push 0xd4bfbc
call fcn.100811b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18