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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff68
mov esi, ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
cmp byte [ebx + 0x25], 4
jne 0x4dd8a8
mov ecx, 2
mov edx, 0xa4e
mov eax, ebp
call fcn.0043e1d4
jmp 0x4de59b
imul edi, esi, 0x5f
mov eax, dword [ebx + 0x658]
movzx eax, byte [eax + edi*4 + 1]
cmp al, 5
je 0x4dd8d4
test al, al
je 0x4dd8d4
mov ecx, 2
mov edx, 0xa4f
mov eax, ebp
call fcn.0043e1d4
jmp 0x4de59b
mov eax, dword [ebx + 0x658]
cmp dword [eax + edi*4 + 8], 0
jne 0x4dd8ea
cmp dword [eax + edi*4 + 4], 0
jae 0x4dd95c
jmp 0x4dd8ec
jge 0x4dd95c
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
jbe 0x4dd927
mov eax, dword [ebx + 0x3c]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 8]
mov eax, dword [eax + edi*4 + 4]
push edx
push eax
mov eax, dword [esp + 0x58]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
jmp 0x4dd9a0
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
call fcn.00405210
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 8]
mov eax, dword [eax + edi*4 + 4]
call fcn.0040517c
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 8]
mov eax, dword [eax + edi*4 + 4]
push edx
push eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 0x10]
mov eax, dword [eax + edi*4 + 0xc]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
cmp edx, 0
jne 0x4dd9e8
cmp eax, 0
jae 0x4dda96
jmp 0x4dd9ee
jge 0x4dda96
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
jbe 0x4dda47
mov eax, dword [ebx + 0x3c]
sub eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 8]
mov eax, dword [eax + edi*4 + 4]
push edx
push eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 0x10]
mov eax, dword [eax + edi*4 + 0xc]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [esp + 0x58]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
jmp 0x4ddb12
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
call fcn.00405210
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 8]
mov eax, dword [eax + edi*4 + 4]
push edx
push eax
mov eax, dword [ebx + 0x658]
mov edx, dword [eax + edi*4 + 0x10]
mov eax, dword [eax + edi*4 + 0xc]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
call fcn.0040517c
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov edi, dword [ebx + 0x3c]
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
call fcn.00405158
cmp edx, 0
jne 0x4ddb44
cmp eax, 0x40000000
jb 0x4ddbad
jmp 0x4ddb46
jl 0x4ddbad
mov eax, 0x200000
xor edx, edx
div edi
xor edx, edx
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
cmp edx, dword [ebx + 0x44]
jne 0x4ddb65
cmp eax, dword [ebx + 0x40]
jae 0x4ddbad
jmp 0x4ddb67
jge 0x4ddbad
mov eax, 0x100000
xor edx, edx
div edi
xor edx, edx
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
cmp edx, dword [ebx + 0x44]
jne 0x4ddb86
cmp eax, dword [ebx + 0x40]
jbe 0x4ddbad
jmp 0x4ddb88
jle 0x4ddbad
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
push edx
push eax
mov eax, 0x100000
xor edx, edx
div dword [ebx + 0x3c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, ebx
call fcn.004daf4c
mov edi, eax
cmp dword [esp + 0x2c], 0
jne 0x4ddbc6
cmp dword [esp + 0x28], 0
jae 0x4ddc25
jmp 0x4ddbc8
jge 0x4ddc25
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
jbe 0x4ddbf7
mov eax, edi
sub eax, dword [esp + 0x48]
mov dword [esp + 0x48], eax
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x58]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
jmp 0x4ddc57
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.00405210
mov dword [esp + 0x48], eax
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
call fcn.0040517c
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov eax, ebx
call fcn.004daf4c
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
call fcn.00405158
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
cmp byte [edx + eax*4 + 1], 0
jne 0x4ddc8f
xor eax, eax
mov dword [esp + 8], eax
jmp 0x4ddcba
mov edx, dword [ebx + 0x658]
mov eax, dword [edx + eax*4 + 0x2c]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0xffffffff
jne 0x4ddcba
mov ecx, 2
mov edx, 0xa4f
mov eax, ebp
call fcn.0043e1d4
jmp 0x4de59b
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, ebx
call fcn.004daf58
mov edi, eax
cmp dword [esp + 0x24], 0
jne 0x4ddd09
cmp dword [esp + 0x20], 0
jne 0x4ddd09
mov eax, edi
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x4dde66
cmp dword [esp + 8], 0xffffffff
je 0x4dde5b
imul eax, dword [esp + 8], 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4]
call fcn.004a3460
test al, al
je 0x4dde5b
mov byte [esp + 0x58], 0
xor eax, eax
mov dword [esp + 4], eax
imul eax, dword [esp + 8], 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4]
mov edx, dword [esp + 4]
mov ecx, dword [eax + edx*4 + 0xcc]
test ecx, ecx
jle 0x4ddd90
imul eax, ecx, 0x5f
mov edx, dword [ebx + 0x658]
cmp byte [edx + eax*4 + 1], 3
jne 0x4ddd90
imul eax, ecx, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 0x50]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 0x24]
jne 0x4ddd87
cmp eax, dword [esp + 0x20]
jbe 0x4ddd90
jmp 0x4ddd89
jle 0x4ddd90
mov byte [esp + 0x58], 1
jmp 0x4ddd9b
inc dword [esp + 4]
cmp dword [esp + 4], 4
jne 0x4ddd3a
cmp byte [esp + 0x58], 0
je 0x4dddc0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push edx
push eax
mov eax, edi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
imul eax, dword [esp + 0x10], 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
imul eax, esi, 0x5f
mov edx, dword [ebx + 0x658]
lea eax, [edx + eax*4 + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x4dde08
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4dde27
jmp 0x4dde0c
pop edx
pop eax
jg 0x4dde27
mov eax, edi
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
sub eax, 1
sbb edx, 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x4dde66
cmp dword [esp + 8], 0
je 0x4dde4e
mov eax, edi
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, edi
cdq
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
jmp 0x4dde66
mov eax, edi
cdq
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x4dde66
mov eax, edi
cdq
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, edi
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
sub eax, 1
sbb edx, 0
cmp edx, 0
jne 0x4dde83
cmp eax, 0
jae 0x4ddef4
jmp 0x4dde85
jge 0x4ddef4
mov esi, edi
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
sub eax, 1
sbb edx, 0
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
jbe 0x4ddebd
sub esi, dword [esp + 0x48]
mov dword [esp + 0x48], esi
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
sub eax, 1
sbb edx, 0
push edx
push eax
mov eax, dword [esp + 0x58]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp 0x4ddf38
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
sub eax, 1
sbb edx, 0
call fcn.00405210
mov dword [esp + 0x48], eax
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
sub eax, 1
sbb edx, 0
call fcn.0040517c
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov eax, edi
cdq
push edx
push eax
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
call fcn.00405158
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, 1
sbb edx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, ebx
call fcn.004daf4c
xor edx, edx
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x2c]
jne 0x4ddf8d
cmp eax, dword [esp + 0x28]
jbe 0x4ddfa5
jmp 0x4ddf8f
jle 0x4ddfa5
mov ecx, 0x402
mov edx, 0xa4f
mov eax, ebp
call fcn.0043e1d4
jmp 0x4de59b
movzx eax, byte [ebx + 0x25]
cmp al, 2
je 0x4ddfd4
cmp al, 3
je 0x4ddfd4
mov eax, dword [ebx + 0x44]
xor edx, edx
test eax, eax
je 0x4ddfc4
mov dword [esp + 0x50], 3
jmp 0x4ddfca
xor eax, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 0xf
jmp 0x4de02b
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
push edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub eax, dword [esp + 0x28]
sbb edx, dword [esp + 0x2c]
sub eax, dword [esp + 0x40]
sbb edx, dword [esp + 0x44]
push edx
push eax
push 0
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x6c]
push eax
push 1
push 0x203
push 0
mov ecx, 6
mov edx, ebx
mov eax, ebp
call fcn.004db2c8
test al, al
je 0x4de59b
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
cmp dword [ebx + 0x63c], 0xffffffff
jne 0x4de048
test byte [esp + 0x54], 1
je 0x4de048
or dword [esp + 0x54], 4
push 0
push 0x58b
push 0xc03
push 0
push 0xa3c
push 4
mov eax, dword [esp + 0x6c]
push eax
push 0
push 0
lea eax, [esp + 0x70]
push eax
mov ecx, 0x5b2
mov dx, 0x1044
mov eax, ebp
call fcn.0044226c
dec eax
jne 0x4de59b
cmp dword [esp + 0x4c], 3
jne 0x4de3a3
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
mov edx, ebx
mov eax, ebp
call fcn.004d9e80
cmp dword [esp + 0x1c], 0
jne 0x4de0c9
cmp dword [esp + 0x18], 0
je 0x4de59b
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x14]
jne 0x4de0df
cmp eax, dword [esp + 0x10]
jae 0x4de0f1
jmp 0x4de0e1
jge 0x4de0f1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x1c]
jne 0x4de107
cmp eax, dword [esp + 0x18]
jbe 0x4de119
jmp 0x4de109
jle 0x4de119
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x14]
jne 0x4de12f
cmp eax, dword [esp + 0x10]
jbe 0x4de14c
jmp 0x4de131
jle 0x4de14c
mov eax, edi
cdq
cmp edx, dword [esp + 0x24]
jne 0x4de146
cmp eax, dword [esp + 0x20]
jb 0x4de39c
jmp 0x4de14c
jl 0x4de39c
mov esi, dword [ebx + 0x3c]
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
call fcn.00405158
cmp edx, 4
jne 0x4de16c
cmp eax, 0
jb 0x4de1bd
jmp 0x4de16e
jl 0x4de1bd
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, 0x8000000
xor edx, edx
call fcn.00405210
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, 0x8000000
xor edx, edx
call fcn.0040517c
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x3c], eax
jmp 0x4de20a
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, 0x2000000
xor edx, edx
call fcn.00405210
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x3c]
xor edx, edx
push edx
push eax
mov eax, 0x2000000
xor edx, edx
call fcn.0040517c
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x2c]
jne 0x4de22c
cmp eax, dword [esp + 0x28]
jae 0x4de39c
jmp 0x4de232
jge 0x4de39c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
sub eax, 1
sbb edx, 0
cmp edx, 0
jne 0x4de267
cmp eax, 0
jae 0x4de30a
jmp 0x4de26d
jge 0x4de30a
mov esi, edi
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
sub eax, 1
sbb edx, 0
neg eax
adc edx, 0
neg edx
call fcn.00405210
mov dword [esp + 0x48], eax
cmp dword [esp + 0x48], 0
jbe 0x4de2b9
sub esi, dword [esp + 0x48]
mov dword [esp + 0x48], esi
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
sub eax, 1
sbb edx, 0
push edx
push eax
mov eax, dword [esp + 0x58]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.0040517c
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
jmp 0x4de37c
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
sub eax, 1
sbb edx, 0
call fcn.00405210
mov dword [esp + 0x48], eax
mov eax, edi
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, dword [esp + 0x40]
adc edx, dword [esp + 0x44]
push edx
push eax
mov eax, edi
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
sub eax, 1
sbb edx, 0
call fcn.0040517c
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov eax, edi
cdq
push edx
push eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
call fcn.00405158
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov esi, 6
jmp 0x4de40d
cmp dword [esp + 0x4c], 2
jne 0x4de3b7
xor eax, eax
mov dword [esp + 0x50], eax
mov esi, 5
jmp 0x4de40d
mov esi, 6
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
cmp dword [esp + 0x4c], 1
jne 0x4de3f5
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, dword [esp + 0x38]
adc edx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
jmp 0x4de40d
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, dword [esp + 0x40]
sbb edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
cmp dword [esp + 0x4c], 3
je 0x4de4e2
mov eax, dword [esp + 0x24]
xor edx, edx
test eax, eax
jne 0x4de45d
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, 1
adc edx, 0
mov eax, edx
xor edx, edx
test eax, eax
je 0x4de45d
cmp dword [esp + 0x24], 0
jne 0x4de44b
cmp dword [esp + 0x20], 0x80000000
ja 0x4de45d
jmp 0x4de44d
jg 0x4de45d
mov dword [esp + 0x28], 0xffffefff
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x4c], 1
jne 0x4de4a4
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
add eax, 0x1001
adc edx, 0
mov eax, edx
xor edx, edx
test eax, eax
jbe 0x4de4e2
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, 0xfffff000
adc edx, 0
sub eax, 1
sbb edx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jmp 0x4de4e2
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
add eax, 0x801
adc edx, 0
mov eax, edx
xor edx, edx
test eax, eax
jbe 0x4de4e2
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add eax, 0xfffff800
adc edx, 0
sub eax, 1
sbb edx, 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov eax, ebx
call fcn.004daf4c
xor edx, edx
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x2c]
jne 0x4de501
cmp eax, dword [esp + 0x28]
jbe 0x4de519
jmp 0x4de503
jle 0x4de519
mov ecx, 0x402
mov edx, 0xa4f
mov eax, ebp
call fcn.0043e1d4
jmp 0x4de59b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, 1
adc edx, 0
sub eax, dword [esp + 0x20]
sbb edx, dword [esp + 0x24]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
mov edx, dword [ebx]
mov eax, ebp
call fcn.004d7574
test al, al
je 0x4de59b
cmp dword [esp + 0x34], 0
jne 0x4de569
cmp dword [esp + 0x30], 0
ja 0x4de56b
jmp 0x4de59b
jle 0x4de59b
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0
lea eax, [esp + 0x64]
push eax
push 0
push 1
push 0x203
push 0
mov ecx, esi
mov edx, ebx
mov eax, ebp
call fcn.004db2c8
mov byte [esp], al
movzx eax, byte [esp]
add esp, 0x98
pop ebp
pop edi
pop esi
pop ebx
ret