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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x6c
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], eax
test eax, eax
je 0x421c8c
mov ebp, eax
mov eax, dword [ebp + 0x34]
mov dword [esp + 0x54], eax
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x50], ecx
movsx edx, dl
neg edx
inc edx
mov byte [eax + 0x7e], dl
test ecx, ecx
je 0x421c8c
movsx edx, byte [eax + 0x48]
test edx, edx
jne 0x421c96
xor eax, eax
add esp, 0x6c
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebx, eax
mov ebp, dword [ebx + 0x28]
mov ebx, dword [ebx + 0x2c]
mov eax, ebx
sub eax, 0
jge 0x421cb5
xor ebp, ebp
xor ebx, ebx
xor eax, eax
mov edx, dword [esp + 0x54]
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 0x70]
dec ecx
mov eax, ecx
cdq
mov dword [esp + 0x28], edx
sub ebp, ecx
sbb ebx, edx
jl 0x421cd8
or ebp, ebx
je 0x421cd8
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], edx
mov ebx, dword [esp + 0x54]
mov ebp, dword [ebx + 0x30]
mov ebx, dword [ebx + 0x34]
mov edx, ebx
sub edx, 0
jge 0x421cf9
xor ebp, ebp
xor ebx, ebx
xor edx, edx
mov esi, dword [esp + 0x54]
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x74]
dec eax
cdq
sub ebp, eax
sbb ebx, edx
jl 0x421d14
or ebp, ebx
je 0x421d14
mov ebx, esi
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
mov ebx, esi
mov ebp, dword [ebx + 0x38]
mov ebx, dword [ebx + 0x3c]
mov esi, ebx
sub esi, 0
jge 0x421d33
xor ebp, ebp
xor ebx, ebx
xor esi, esi
mov edi, dword [esp + 0x54]
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], esi
sub ebp, ecx
mov esi, dword [esp + 0x28]
sbb ebx, esi
jl 0x421d4d
or ebp, ebx
je 0x421d4d
mov ebx, dword [esp + 0x54]
mov dword [ebx + 0x38], ecx
mov ecx, esi
mov dword [ebx + 0x3c], ecx
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x44]
mov ebp, esi
sub ebp, 0
jge 0x421d6e
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov ebp, dword [esp + 0x54]
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
sub ecx, eax
sbb esi, edx
jl 0x421d82
or ecx, esi
je 0x421d82
mov ecx, dword [esp + 0x54]
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
mov eax, dword [esp + 0x68]
xor edx, edx
call fcn.00422a40
mov eax, dword [esp + 0x68]
mov ebp, dword [eax + 4]
mov ebx, dword [eax + 0x20]
lea ecx, [ebx - 1]
mov esi, ecx
test ecx, ecx
jl 0x421dc4
mov dword [esp + 0x1c], ebx
cmp esi, ecx
jge 0x421dab
mov ebp, dword [ebp + 8]
mov edi, dword [ebp + 0x34]
cmp byte [edi + 0x81], 1
je 0x422920
dec esi
test esi, esi
jge 0x421da4
mov ebx, dword [esp + 0x1c]
cmp esi, 0xffffffff
jne 0x421e33
mov ecx, dword [esp + 0x54]
mov esi, dword [ecx + 0x30]
mov eax, esi
cdq
mov ebp, esi
sub ebp, dword [ecx + 0x40]
sbb edx, dword [ecx + 0x44]
jl 0x421de5
or ebp, edx
jne 0x422208
mov ebx, dword [esp + 0x50]
mov ebp, ecx
mov edx, dword [ebp + 0x70]
add edx, edx
add edx, edx
imul edx, esi
mov ecx, dword [ebp + 0x28]
lea eax, [ecx + ecx]
add eax, eax
add eax, ebx
add eax, edx
mov edi, dword [ebp + 0x38]
sub edi, ecx
add edi, 1
add edi, edi
add edi, edi
push edi
push eax
call dword [0x5b2480]
add esp, 8
inc esi
mov eax, esi
cdq
mov ecx, esi
sub ecx, dword [ebp + 0x40]
sbb edx, dword [ebp + 0x44]
jl 0x421deb
or ecx, edx
je 0x421deb
xor esi, esi
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 0x20]
lea edx, [esi + 1]
mov eax, dword [esp + 0x68]
call fcn.0040461c
mov ebp, eax
xor edi, edi
mov dword [esp + 0x4c], edi
cmp esi, ebx
jge 0x421c8c
movsx edx, byte [ebp + 0x30]
test edx, edx
je 0x421e6a
mov ebx, dword [esp + 0x64]
lea ecx, [ebx + 1]
mov eax, ebp
mov edx, 1
call fcn.00421c51
mov ebx, dword [ebp + 0x34]
movsx ecx, byte [ebx + 0x81]
test ecx, ecx
je 0x421e80
movsx ecx, word [ebx + 0x78]
test ecx, ecx
jne 0x421e88
mov ebp, dword [ebp + 0xc]
jmp 0x421fae
mov ecx, dword [ebx + 0x4c]
movsx edi, byte [ecx]
test edi, edi
je 0x421ea2
movsx ecx, word [ebx + 0x7a]
test ecx, ecx
jne 0x421ea2
mov ebp, dword [ebp + 0xc]
jmp 0x421fae
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x58], edx
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x5c], eax
mov edi, dword [ebx + 0x60]
mov dword [esp + 0x60], edi
mov ecx, dword [ebx + 0x64]
sub edi, edx
mov edx, ecx
sbb edx, eax
jl 0x421ed2
or edi, edx
je 0x421ed2
mov ebp, dword [ebp + 0xc]
jmp 0x421fae
mov dword [esp + 0x48], ecx
mov edi, dword [esp + 0x54]
mov edx, dword [edi + 0x40]
mov dword [esp + 0x38], edx
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x3c], ecx
mov edi, dword [ebx + 0x68]
mov dword [esp + 0x40], edi
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x44], eax
sub edi, edx
sbb eax, ecx
mov ecx, dword [esp + 0x48]
jl 0x421f0c
or edi, eax
je 0x421f0c
mov ebp, dword [ebp + 0xc]
jmp 0x421fae
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x54]
mov ebp, dword [eax + 0x28]
mov dword [esp + 0x24], ebp
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x2c], edi
mov eax, dword [ebx + 0x70]
cdq
mov ebx, dword [esp + 0x60]
add eax, ebx
mov dword [esp + 0x30], eax
adc edx, ecx
mov dword [esp + 0x28], edx
sub eax, ebp
sbb edx, edi
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x20]
jl 0x421f4c
or eax, edx
jne 0x421f51
mov ebp, dword [ebp + 0xc]
jmp 0x421fae
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ecx
mov edi, dword [esp + 0x54]
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x14], ecx
mov edi, dword [edi + 0x34]
mov dword [esp + 0x50], edi
mov eax, dword [ebx + 0x74]
cdq
mov ebx, dword [esp + 0x40]
add eax, ebx
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x44]
adc edx, ebx
sub eax, ecx
mov ebx, edx
mov ecx, edi
sbb ebx, ecx
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x34]
jl 0x421f9b
or eax, dword [esp + 0x18]
jne 0x421fa0
mov ebp, dword [ebp + 0xc]
jmp 0x421fae
movsx edi, byte [ebx + 0xa0]
test edi, edi
je 0x421fbb
mov ebp, dword [ebp + 0xc]
inc esi
mov edx, dword [esp + 0x68]
mov ebx, dword [edx + 0x20]
jmp 0x421e47
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
sub eax, edi
mov edi, dword [esp + 0x2c]
sbb ecx, edi
jge 0x421fd8
mov ecx, 4
mov dword [esp + 0x18], ecx
jmp 0x421fde
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
sub edi, ecx
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
sbb edi, ecx
jge 0x421ff9
or dword [esp + 0x18], 1
mov eax, dword [esp + 0x30]
add eax, 0xffffffff
mov ecx, dword [esp + 0x28]
adc ecx, 0xffffffff
mov edi, dword [esp + 0x58]
sub eax, edi
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x5c]
sbb ecx, edi
mov dword [esp + 0x28], ecx
jl 0x42202a
mov ecx, eax
or ecx, dword [esp + 0x28]
je 0x42202a
or dword [esp + 0x18], 8
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
adc edx, 0xffffffff
mov ecx, dword [esp + 0x38]
sub edi, ecx
mov dword [esp + 0x1c], edi
mov ecx, dword [esp + 0x3c]
sbb edx, ecx
jl 0x422051
mov ecx, edi
or ecx, edx
je 0x422051
or dword [esp + 0x18], 2
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x54]
mov edx, ebx
mov ecx, dword [esp + 0x18]
call fcn.00422b00
mov ecx, dword [ebx + 0x4c]
movsx edi, byte [ecx]
test edi, edi
jne 0x422080
xor ecx, ecx
mov dword [esp + 0x50], ecx
xor edi, edi
mov dword [esp + 0x28], edi
jmp 0x4220da
xor ecx, ecx
mov byte [0x5b4480], cl
mov byte [esp + 0xc], cl
mov eax, 0x5b4480
mov edx, dword [ebx + 0x4c]
mov ecx, dword [0x7df654]
call fcn.0040cff8
movsx ecx, al
test ecx, ecx
jl 0x422a28
mov eax, dword [0x7df644]
mov edx, 0x5b4480
xor ecx, ecx
call fcn.00422ea1
mov dword [esp + 0x4c], eax
mov ecx, eax
test ecx, ecx
je 0x42290f
mov edi, dword [ecx + 0x34]
mov dword [esp + 0x50], edi
mov ecx, dword [edi + 0x90]
mov dword [esp + 0x28], ecx
cmp dword [ebx + 0x90], 0
je 0x422238
cmp byte [ebx + 0x7e], 1
je 0x422505
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x422109
movsx ecx, word [ebx + 0x7a]
cmp ecx, 0x100
jl 0x422244
movsx ecx, byte [0x5956f4]
test ecx, ecx
jle 0x422217
mov dword [0x790604], 0x65
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x54]
mov dword [esi + 0x79061c], 0
mov eax, dword [0x7dfc04]
cdq
idiv ecx
mov dword [esi + 0x790624], eax
mov ecx, dword [0x7dfc00]
mov dword [esi + 0x790640], ecx
mov ecx, dword [0x7dfbf0]
mov dword [esi + 0x790644], ecx
mov ecx, dword [0x7dfbf4]
mov dword [esi + 0x790648], ecx
mov ecx, dword [0x7dfbf8]
mov dword [esi + 0x79064c], ecx
mov ecx, dword [0x7dfbfc]
mov dword [esi + 0x790650], ecx
mov dword [esi + 0x790658], ebp
mov dword [esi + 0x79065c], ebx
push dword [edi*4 + 0x792000]
call dword [0x56e23c]
push 0xffffffffffffffff
push dword [edi*4 + 0x792100]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jge 0x42220f
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x790604], 0x65
test edi, edi
je 0x422134
cmp edi, 1
jne 0x42214c
mov eax, dword [0x7dfc04]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x79061c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x790624], ecx
jmp 0x42214c
xor esi, esi
jmp 0x421e33
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422238
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x792200]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jl 0x42221d
mov byte [ebx + 0x4b], 1
mov ebp, dword [ebp + 0xc]
jmp 0x421fae
mov edx, dword [ebx + 0x70]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x70]
mov dword [esp + 0x60], edi
cmp edx, edi
jne 0x4224f3
mov eax, dword [ebx + 0x74]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x74]
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x4224c3
movsx eax, word [ebx + 0x7c]
movsx edi, word [ebx + 0x78]
mov dword [esp + 0x24], edi
cmp eax, 0x100
je 0x422436
mov edx, eax
sar edx, 1
imul edx, ecx
mov edi, eax
shl edi, 7
sub edx, edi
add edx, ecx
mov dword [esp + 0x14], edx
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x10], esi
mov esi, edi
sar esi, 1
add esi, edx
cmp esi, 0xff
jle 0x4222b6
mov esi, 0xff
inc esi
mov dword [ecx + 0x766200], esi
add edi, eax
add ecx, 4
cmp ecx, 0x400
jl 0x4222a3
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edi, dword [ecx + 0x766200]
imul edi, eax
sar edi, 8
mov dword [ecx + 0x766200], edi
add ecx, 4
cmp ecx, 0x400
jl 0x4222d4
movsx ecx, byte [0x5956f4]
test ecx, ecx
jle 0x42240c
mov dword [0x790604], 0x66
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x50]
mov dword [esi + 0x79061c], 0
mov eax, dword [0x7dfc04]
cdq
idiv ecx
mov dword [esi + 0x790624], eax
mov ecx, dword [0x7dfc00]
mov dword [esi + 0x790640], ecx
mov ecx, dword [0x7dfbf0]
mov dword [esi + 0x790644], ecx
mov ecx, dword [0x7dfbf4]
mov dword [esi + 0x790648], ecx
mov ecx, dword [0x7dfbf8]
mov dword [esi + 0x79064c], ecx
mov ecx, dword [0x7dfbfc]
mov dword [esi + 0x790650], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x790658], ecx
mov dword [esi + 0x79065c], ebx
mov dword [esi + 0x790660], ebp
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x790664], ecx
push dword [edi*4 + 0x792000]
call dword [0x56e23c]
push 0xffffffffffffffff
push dword [edi*4 + 0x792100]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jge 0x422404
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x790604], 0x66
test edi, edi
je 0x42231c
cmp edi, 1
jne 0x422334
mov eax, dword [0x7dfc04]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x79061c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x790624], ecx
jmp 0x422334
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422238
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x792200]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jl 0x422416
jmp 0x422238
mov edi, ecx
neg edi
mov dword [esp + 0x18], edi
lea edi, [edi + 0x100]
mov dword [esp + 0x14], edi
cmp edi, 0x320
jg 0x4224a6
neg ecx
cmp ecx, 0xffffff01
jl 0x42246f
mov ecx, 1
mov dword [ecx*4 + 0x7661fc], 0
inc ecx
cmp ecx, edi
jle 0x42245f
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
jge 0x4222ce
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx + 0x200]
add ecx, ecx
mov dword [ecx + 0x766200], 0x100
add ecx, 4
cmp ecx, 0x400
jl 0x42248c
jmp 0x4222ce
mov ecx, dword [esp + 0x18]
lea edi, [ecx*4 + 0x400]
push edi
push 0
push 0x766200
call fcn.0045d508
add esp, 0xc
jmp 0x42246f
mov ecx, edi
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x4c]
push ecx
push esi
push dword [edi + 0x14]
push eax
push edx
push dword [ebp + 0x14]
push 1
push 0x187d6
call fcn.0045d048
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, edi
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ecx + 0x74]
jmp 0x4224cd
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x42251d
movsx ecx, word [ebx + 0x7a]
cmp ecx, 0x100
jl 0x42264e
movsx ecx, byte [0x5956f4]
test ecx, ecx
jle 0x422624
mov dword [0x790604], 0x67
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x54]
mov dword [esi + 0x79061c], 0
mov eax, dword [0x7dfc04]
cdq
idiv ecx
mov dword [esi + 0x790624], eax
mov ecx, dword [0x7dfc00]
mov dword [esi + 0x790640], ecx
mov ecx, dword [0x7dfbf0]
mov dword [esi + 0x790644], ecx
mov ecx, dword [0x7dfbf4]
mov dword [esi + 0x790648], ecx
mov ecx, dword [0x7dfbf8]
mov dword [esi + 0x79064c], ecx
mov ecx, dword [0x7dfbfc]
mov dword [esi + 0x790650], ecx
mov dword [esi + 0x790658], ebp
mov dword [esi + 0x79065c], ebx
push dword [edi*4 + 0x792000]
call dword [0x56e23c]
push 0xffffffffffffffff
push dword [edi*4 + 0x792100]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jge 0x42261c
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x790604], 0x67
test edi, edi
je 0x422548
cmp edi, 1
jne 0x422560
mov eax, dword [0x7dfc04]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x79061c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x790624], ecx
jmp 0x422560
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422238
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x792200]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jl 0x42262e
jmp 0x422238
mov edx, dword [ebx + 0x70]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x70]
mov dword [esp + 0x60], edi
cmp edx, edi
jne 0x4228fd
mov eax, dword [ebx + 0x74]
mov edi, dword [esp + 0x50]
mov edi, dword [edi + 0x74]
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x4228cd
movsx eax, word [ebx + 0x7c]
movsx edi, word [ebx + 0x78]
mov dword [esp + 0x24], edi
cmp eax, 0x100
je 0x422840
mov edx, eax
sar edx, 1
imul edx, ecx
mov edi, eax
shl edi, 7
sub edx, edi
add edx, ecx
mov dword [esp + 0x14], edx
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x10], esi
mov esi, edi
sar esi, 1
add esi, edx
cmp esi, 0xff
jle 0x4226c0
mov esi, 0xff
inc esi
mov dword [ecx + 0x766200], esi
add edi, eax
add ecx, 4
cmp ecx, 0x400
jl 0x4226ad
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edi, dword [ecx + 0x766200]
imul edi, eax
sar edi, 8
mov dword [ecx + 0x766200], edi
add ecx, 4
cmp ecx, 0x400
jl 0x4226de
movsx ecx, byte [0x5956f4]
test ecx, ecx
jle 0x422816
mov dword [0x790604], 0x68
xor edi, edi
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], esi
mov esi, eax
mov ebp, dword [esp + 0x50]
mov dword [esi + 0x79061c], 0
mov eax, dword [0x7dfc04]
cdq
idiv ecx
mov dword [esi + 0x790624], eax
mov ecx, dword [0x7dfc00]
mov dword [esi + 0x790640], ecx
mov ecx, dword [0x7dfbf0]
mov dword [esi + 0x790644], ecx
mov ecx, dword [0x7dfbf4]
mov dword [esi + 0x790648], ecx
mov ecx, dword [0x7dfbf8]
mov dword [esi + 0x79064c], ecx
mov ecx, dword [0x7dfbfc]
mov dword [esi + 0x790650], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x790658], ecx
mov dword [esi + 0x79065c], ebx
mov dword [esi + 0x790660], ebp
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x790664], ecx
push dword [edi*4 + 0x792000]
call dword [0x56e23c]
push 0xffffffffffffffff
push dword [edi*4 + 0x792100]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jge 0x42280e
lea eax, [edi + edi]
add eax, eax
sub eax, edi
lea esi, [edi + eax*4]
add esi, esi
add esi, esi
add esi, esi
mov dword [esi + 0x790604], 0x68
test edi, edi
je 0x422726
cmp edi, 1
jne 0x42273e
mov eax, dword [0x7dfc04]
mov dword [esp + 0x48], eax
cdq
idiv ecx
mov dword [esi + 0x79061c], eax
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x790624], ecx
jmp 0x42273e
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
test ecx, ecx
jle 0x422238
xor edi, edi
push 0xffffffffffffffff
push dword [edi*4 + 0x792200]
call dword [0x56e238]
inc edi
movsx ecx, byte [0x5956f4]
cmp edi, ecx
jl 0x422820
jmp 0x422238
mov edi, ecx
neg edi
mov dword [esp + 0x18], edi
lea edi, [edi + 0x100]
mov dword [esp + 0x14], edi
cmp edi, 0x320
jg 0x4228b0
neg ecx
cmp ecx, 0xffffff01
jl 0x422879
mov ecx, 1
mov dword [ecx*4 + 0x7661fc], 0
inc ecx
cmp ecx, edi
jle 0x422869
mov ecx, dword [esp + 0x14]
cmp ecx, 0x100
jge 0x4226d8
mov ecx, dword [esp + 0x18]
lea ecx, [ecx + ecx + 0x200]
add ecx, ecx
mov dword [ecx + 0x766200], 0x100
add ecx, 4
cmp ecx, 0x400
jl 0x422896
jmp 0x4226d8
mov ecx, dword [esp + 0x18]
lea edi, [ecx*4 + 0x400]
push edi
push 0
push 0x766200
call fcn.0045d508
add esp, 0xc
jmp 0x422879
mov ecx, edi
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x4c]
push ecx
push esi
push dword [edi + 0x14]
push eax
push edx
push dword [ebp + 0x14]
push 1
push 0x187d6
call fcn.0045d048
mov eax, 0xffffffff
add esp, 0x8c
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, edi
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ecx + 0x74]
jmp 0x4228d7
xor ecx, ecx
mov dword [esp + 0x50], ecx
xor edi, edi
mov dword [esp + 0x28], edi
jmp 0x4220da
movsx eax, byte [edi + 0x7f]
test eax, eax
jne 0x421dbb
movsx eax, word [edi + 0x78]
cmp eax, 0x100
jne 0x421dbb
movsx eax, byte [edi + 0x7e]
test eax, eax
jne 0x421dbb
mov eax, dword [edi + 0x4c]
movsx eax, byte [eax]
test eax, eax
jne 0x422a05
mov edx, dword [edi + 0x60]
mov dword [esp + 0x58], edx
mov ebx, dword [edi + 0x64]
mov eax, dword [esp + 0x54]
sub edx, dword [eax + 0x28]
mov dword [esp + 0x5c], edx
mov edx, ebx
sbb edx, dword [eax + 0x2c]
mov dword [esp + 0x60], edx
jl 0x422983
mov eax, dword [esp + 0x5c]
or eax, dword [esp + 0x60]
jne 0x421dbb
mov dword [esp + 0x34], ebx
mov eax, dword [edi + 0x68]
mov dword [esp + 0x5c], eax
mov ebx, dword [edi + 0x6c]
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x54]
sub eax, dword [edx + 0x30]
sbb ebx, dword [edx + 0x34]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x34]
jl 0x4229b3
or eax, dword [esp + 0x30]
jne 0x421dbb
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x70]
cdq
mov esi, dword [esp + 0x58]
add esi, eax
adc ebx, edx
add esi, 0xffffffff
adc ebx, 0xffffffff
mov eax, dword [esp + 0x54]
sub esi, dword [eax + 0x38]
sbb ebx, dword [eax + 0x3c]
mov esi, dword [esp + 0x10]
jl 0x421dbb
mov eax, dword [edi + 0x74]
cdq
mov ebx, dword [esp + 0x5c]
add ebx, eax
mov eax, dword [esp + 0x60]
adc eax, edx
add ebx, 0xffffffff
adc eax, 0xffffffff
mov edi, dword [esp + 0x54]
sub ebx, dword [edi + 0x40]
sbb eax, dword [edi + 0x44]
jl 0x421dbb
jmp 0x422a1f
je 0x421dbb
movsx eax, word [edi + 0x7a]
cmp eax, 0x100
je 0x422955
jmp 0x421dbb
mov ebx, dword [esp + 0x1c]
jmp 0x421e33
mov eax, 0xffffffff
add esp, 0x6c
pop ebx
pop ebp
pop esi
pop edi
ret