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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 0x20]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x60]
imul ecx, ecx, 0x58
push ebx
lea ebx, [ecx + eax + 0x38]
movzx ecx, byte [ebx + 0x34]
push ebp
mov ebp, dword [eax]
mov eax, dword [eax + 4]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*8 + 8]
mov ecx, dword [eax + 0x2c]
push esi
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
mov esi, eax
shr esi, 0x18
push edi
mov edi, dword [ebp + 8]
xor edx, edx
and esi, 1
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], esi
test eax, 0x400000
je 0x60380d
test byte [esp + 0x74], 0x20
mov dword [esp + 0x58], 1
je 0x603811
mov dword [esp + 0x58], edx
mov eax, edi
call fcn.005d7fd0
mov dword [esp + 0x28], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x24], eax
mov eax, edi
call fcn.005d7fd0
cmp byte [ebx + 0x34], 0
mov dword [esp + 0x4c], eax
mov dword [ebx + 0x2c], eax
jbe 0x603857
mov edx, dword [esp + 0x38]
test byte [edx + 0x20], 8
je 0x603857
inc dword [ebp + 0x4c]
mov eax, dword [ebp + 0x4c]
xor ecx, ecx
push edi
lea edx, [ecx + 7]
mov dword [ebx + 0x18], eax
call fcn.005d7fb0
add esp, 4
mov eax, dword [esp + 0x38]
test byte [eax + 0x24], 4
je 0x6038a3
mov ecx, dword [eax + 0x18]
mov esi, dword [eax + 0x1c]
dec ecx
push edi
mov eax, esi
mov edx, 7
call fcn.005d7fb0
push edi
mov eax, esi
mov ecx, 4
call fcn.005d7f90
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x30]
lea ecx, [esi + 1]
push edi
mov edx, 0x1b
call fcn.005d7fb0
add esp, 0xc
mov byte [ebx + 0x35], 1
jmp 0x603ce5
mov eax, dword [ebx]
test eax, 0x8000000
je 0x603a43
mov eax, dword [ebx + 0x10]
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], eax
mov eax, ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x48], edx
call fcn.005d1520
lea esi, [edi + 2]
mov ecx, ebp
mov dword [esp + 0x54], esi
call fcn.005d1770
cmp edi, 1
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 1
jl 0x603959
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x70]
mov eax, edi
jmp 0x603900
xor edi, edi
test eax, eax
jle 0x60394c
cmp dword [edx + edi*8], ecx
je 0x603912
inc edi
cmp edi, eax
jl 0x603906
jmp 0x60394c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x34]
lea esi, [eax + ecx + 1]
mov eax, dword [esp + 0x48]
lea edx, [edi + edi*2]
mov eax, dword [eax + edx*4 + 8]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax + ecx*8]
mov ecx, dword [ecx + 0xc]
mov eax, ebp
call fcn.005d96d0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x70]
cmp edi, eax
je 0x603959
inc ecx
cmp ecx, eax
mov dword [esp + 0x70], ecx
jle 0x603900
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
mov ecx, dword [esi + 0x14]
push edx
mov eax, edi
mov edx, 7
call fcn.005d7fb0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
push edx
lea eax, [edi + 1]
dec ecx
mov edx, 7
call fcn.005d7fb0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x1c]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0xfffffffe
push eax
push ecx
mov ecx, dword [esp + 0x38]
mov eax, edi
mov edi, dword [esp + 0x20]
push 0x88
call fcn.005de560
mov eax, dword [esp + 0x50]
add esp, 0x14
mov dword [esi + 0x1c], 0
test eax, eax
jle 0x603a0e
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
add edi, 8
add edx, 4
mov dword [esp + 0x70], edx
mov dword [esp + 0x48], eax
mov edi, edi
mov eax, dword [esp + 0x70]
cmp byte [eax], 0
je 0x6039ff
mov eax, dword [edi]
mov edx, dword [esp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x20]
lea eax, [eax + ecx*8]
mov esi, ebx
call fcn.005d36f0
add dword [esp + 0x70], 8
add edi, 0xc
sub dword [esp + 0x48], 1
jne 0x6039e0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov byte [ebx + 0x35], 0x8a
mov dword [ebx + 0x38], ecx
call fcn.005cfe20
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x3c], eax
mov eax, ebp
call fcn.005d17a0
mov ecx, 1
call fcn.005d1530
jmp 0x603ce5
test eax, 0x1000
je 0x603acd
mov eax, ebp
call fcn.005d1720
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push 3
push edx
mov esi, eax
mov eax, dword [esp + 0x84]
push eax
push 0xffffffffffffffff
push edi
push ecx
mov dword [esp + 0x5c], esi
call fcn.005ef540
push esi
push eax
mov esi, ebx
push ebp
mov eax, esi
call fcn.006034b0
mov edx, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esi + 0x28]
push edx
mov ecx, ebx
mov edx, 0x15
mov dword [esp + 0x54], eax
call fcn.005d7fb0
mov eax, dword [esp + 0x54]
push ebx
push eax
mov eax, dword [esp + 0x44]
push edi
push 0x36
call fcn.005d7f10
push 0xffffffffffffffff
push edi
mov edx, ebp
call fcn.005d13e0
add esp, 0x44
mov byte [esi + 0x35], 0x95
mov ebx, esi
jmp 0x603ce5
test eax, 0x2000
je 0x603d3d
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x14]
push 0
push 0x24
push ecx
mov ecx, dword [esp + 0x24]
push edx
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x50], 0x95
mov dword [esp + 0x64], 0
call fcn.005ef540
mov edx, dword [esp + 0x98]
mov ecx, dword [esp + 0x30]
push 0
push 0x18
push edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
push eax
push 0xffffffffffffffff
push ecx
push edx
call fcn.005ef540
add esp, 0x38
mov dword [esp + 0x24], eax
test esi, esi
je 0x603b4e
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x24], eax
cmp dword [esp + 0x70], 0
je 0x603bd5
mov edx, dword [esp + 0x70]
mov esi, dword [edx]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x58]
push eax
push ecx
mov ebx, ebp
mov byte [esp + 0x40], 0x31
mov byte [esp + 0x41], 0x2f
mov byte [esp + 0x42], 0x2e
mov byte [esp + 0x43], 0x30
call fcn.005d9690
movzx ecx, byte [esi]
mov edx, dword [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x1c]
push edi
push edx
movzx edx, byte [esp + ecx - 5]
push eax
mov eax, dword [esp + 0x24]
push edx
call fcn.005d7f10
add esp, 0x18
mov ecx, 1
mov eax, ebp
call fcn.005d15c0
mov esi, dword [esp + 0x58]
mov edx, ebp
call fcn.005d1740
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x1c]
call fcn.005d36f0
mov edi, dword [esp + 0x10]
mov ebx, esi
mov esi, dword [esp + 0x20]
jmp 0x603bf2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xfffffffb
add edx, 0x48
push edi
call fcn.005d7fb0
add esp, 4
cmp dword [esp + 0x24], 0
je 0x603c58
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
inc dword [ebp + 0x4c]
mov esi, dword [ebp + 0x4c]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x58], eax
mov eax, ebp
mov dword [esp + 0x48], esi
call fcn.005d96d0
mov ecx, dword [esp + 0x58]
mov al, byte [ecx]
cmp al, 0x4f
je 0x603c38
cmp al, 0x4d
je 0x603c38
xor edx, edx
cmp dword [esp + 0x20], edx
setne dl
lea edx, [edx + edx + 0x4d]
mov dword [esp + 0x34], edx
jmp 0x603c49
xor eax, eax
cmp dword [esp + 0x20], eax
sete al
lea eax, [eax + eax + 0x4e]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
mov esi, ebx
call fcn.005d36f0
mov esi, dword [esp + 0x20]
mov eax, edi
call fcn.005cfe20
mov edx, dword [esp + 0x14]
mov ecx, esi
neg ecx
sbb cl, cl
and cl, 0xfd
add cl, 0x5f
cmp dword [esp + 0x70], 0
mov byte [ebx + 0x35], cl
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], eax
jne 0x603c8a
cmp dword [esp + 0x24], 0
jne 0x603c8a
mov byte [ebx + 0x36], 1
cmp dword [esp + 0x34], 0x95
je 0x603ce5
mov eax, ebp
call fcn.005d1720
mov esi, dword [esp + 0x10]
mov edi, edx
mov ebx, eax
push esi
mov ecx, edi
mov edx, 0x41
mov dword [esp + 0x44], ebx
call fcn.005d7fb0
push 0xffffffffffffffff
push edi
mov edx, ebp
call fcn.005d13e0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
push ebx
push eax
push ecx
push edx
mov eax, esi
call fcn.005d7f10
add esp, 0x1c
mov dl, 0x6b
mov eax, esi
call fcn.005cfe60
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [edi + 4]
call fcn.005d3410
mov esi, dword [edi + 0x20]
mov edi, dword [edi + 0x18]
not eax
and dword [esp + 0x78], eax
not edx
and dword [esp + 0x7c], edx
test edi, edi
jle 0x6045d0
nop
test byte [esi + 0x12], 6
jne 0x6045c4
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0x78]
and ecx, dword [esp + 0x7c]
or eax, ecx
je 0x6045a1
mov ecx, dword [esp + 0x6c]
mov byte [ecx + 0xd], 1
jmp 0x6045c4
test eax, 0x30000
je 0x60417f
mov ecx, dword [ebx + 0x20]
movzx edx, word [ebx + 4]
mov esi, dword [ebx + 0x10]
xor eax, eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], eax
cmp edx, ecx
jne 0x603d74
or edi, 0xffffffff
jmp 0x603d7a
mov edi, dword [esi + 4]
mov edi, dword [edi + edx*4]
test byte [esp + 0x74], 1
je 0x603d96
test dword [ebx], 0x800000
je 0x603d96
cmp ecx, edx
jle 0x603d96
mov eax, 1
mov dword [esp + 0x50], eax
test dword [ebx], 0x100000
je 0x603dca
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
push esi
push 0x18
push edx
mov edx, dword [esp + 0x24]
push eax
push edi
push ecx
push edx
call fcn.005ef540
mov dword [esp + 0x8c], eax
add esp, 0x1c
mov eax, 1
test dword [ebx], 0x200000
je 0x603dfb
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
push esi
push 0x24
push eax
mov eax, dword [esp + 0x24]
push ecx
push edi
push edx
push eax
call fcn.005ef540
mov dword [esp + 0x50], eax
add esp, 0x1c
mov eax, 1
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x80]
push edx
push eax
push ecx
mov edi, ebx
push edi
push ebp
call fcn.00603600
mov ebx, dword [esp + 0x4c]
mov edx, dword [ebp]
add esp, 0x1c
mov dword [esp + 0x2c], eax
call fcn.005d5390
mov edx, dword [edi + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x24]
cmp edi, eax
mov dword [esp + 0x28], edx
jge 0x603e56
mov ecx, dword [esi + 0x1c]
xor edx, edx
cmp byte [edi + ecx], dl
sete dl
cmp dword [esp + 0x20], edx
je 0x603e61
cmp dword [esp + 0x20], 0
je 0x603e73
cmp eax, edi
jne 0x603e73
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x34], eax
jmp 0x603e7b
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
je 0x603e90
test byte [eax + 0x10], 0x28
jne 0x603e90
mov dword [esp + 0x44], esi
lea edx, [esi + 1]
jmp 0x603e99
mov edx, 1
mov dword [esp + 0x44], edx
cmp ecx, esi
je 0x603ea7
test byte [ecx + 0x10], 0x28
mov dword [esp + 0x54], esi
je 0x603eab
mov dword [esp + 0x54], edx
cmp eax, esi
jne 0x603eb7
cmp edi, esi
mov dword [esp + 0x48], esi
jle 0x603ebb
mov dword [esp + 0x48], edx
cmp eax, esi
je 0x603f21
mov eax, dword [eax]
mov ebx, dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
lea esi, [ecx + edi]
mov ecx, ebx
mov eax, ebp
mov dword [esp + 0x50], ebx
call fcn.005d96d0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push edx
push esi
push eax
mov ecx, ebx
call fcn.005d9500
add esp, 0xc
cmp dword [esp + 0x30], 0
je 0x603f4c
mov esi, dword [esp + 0x30]
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x50]
call fcn.005d9070
cmp al, 0x62
jne 0x603f0b
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x50]
call fcn.005d1260
test eax, eax
je 0x603f4c
mov byte [esi + edi], 0x62
jmp 0x603f4c
cmp dword [esp + 0x50], esi
je 0x603f4d
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
lea eax, [ecx + edi]
xor ecx, ecx
push edx
lea edx, [ecx + 0xa]
call fcn.005d7fb0
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
inc edi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebp
mov ecx, edi
mov edx, esi
call fcn.005daf90
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x14]
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x24]
movzx ecx, byte [eax + edx*2 + 0x7ce280]
mov edx, dword [esp + 0x3c]
push edi
push ecx
mov ecx, dword [esp + 0x34]
mov eax, esi
mov edi, ebx
call fcn.005de5e0
mov edi, dword [esp + 0x30]
add esp, 0xc
cmp dword [esp + 0x70], 0
je 0x604027
mov edx, dword [esp + 0x70]
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
mov edx, edi
add esi, edx
mov dword [esp + 0x48], ecx
mov ecx, 1
mov edi, esi
mov eax, ebp
call fcn.005d14e0
mov edi, dword [esp + 0x48]
mov ecx, edi
call fcn.005d96d0
mov eax, dword [esp + 0x28]
push eax
push esi
push ebx
mov ecx, edi
call fcn.005d9500
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
add esp, 0xc
test esi, esi
je 0x60400d
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x48]
call fcn.005d9070
cmp al, 0x62
jne 0x603ff9
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x48]
call fcn.005d1260
test eax, eax
je 0x60400d
mov byte [esi + edi], 0x62
mov edx, dword [esp + 0x2c]
inc edi
push ebp
mov eax, esi
mov ecx, edi
call fcn.005daf90
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
add esp, 4
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp]
call fcn.005ca970
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp]
call fcn.005ca970
mov eax, ebx
call fcn.005cfe20
cmp dword [esp + 0x70], 0
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 0x3c], eax
jne 0x60405f
cmp dword [esp + 0x24], 0
jne 0x60405f
xor eax, eax
jmp 0x604064
mov eax, 1
mov edx, dword [esp + 0x20]
inc edx
imul edx, eax
movzx eax, byte [edx + 0x7ce288]
cmp eax, 0x95
je 0x6040a2
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push edi
push eax
mov eax, esi
mov edi, ebx
call fcn.005de5e0
mov eax, dword [esp + 0x28]
add esp, 8
cmp dword [esp + 0x54], eax
mov eax, ebx
setne dl
call fcn.005cfe60
mov eax, ebp
call fcn.005d1720
mov ecx, dword [esp + 0x1c]
test dword [ecx], 0x300000
mov esi, eax
je 0x6040df
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
push esi
push edx
push eax
push 0x1d
mov eax, ebx
call fcn.005d7f10
mov eax, dword [esp + 0x5c]
push ebx
mov ecx, esi
mov edx, 0x49
call fcn.005d7fb0
add esp, 0x14
mov edx, ebp
call fcn.005d1740
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
call fcn.005d36f0
mov eax, dword [esp + 0x70]
call fcn.005d36f0
cmp dword [esp + 0x58], 0
jne 0x604147
mov eax, ebp
call fcn.005d1720
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov ebx, eax
push esi
mov edx, 0x63
mov dword [esp + 0x44], ebx
call fcn.005d7fb0
mov edi, dword [esp + 0x18]
push 0xffffffffffffffff
push edi
mov edx, ebp
call fcn.005d13e0
push esi
mov eax, ebx
mov ecx, edi
mov edx, 0x32
call fcn.005d7fb0
mov esi, dword [esp + 0x2c]
add esp, 0x10
mov eax, dword [esi]
test eax, 0x2000000
je 0x604156
mov byte [esi + 0x35], 0x95
jmp 0x604167
mov ecx, dword [esp + 0x20]
neg ecx
sbb cl, cl
and cl, 0xfd
add cl, 0x5f
mov byte [esi + 0x35], cl
mov edx, dword [esp + 0x38]
mov dword [esi + 0x38], edx
test eax, eax
jns 0x603ce1
mov byte [esi + 0x36], 1
jmp 0x603ce1
test eax, 0x10000000
je 0x604570
mov eax, dword [ebp + 0x48]
inc dword [ebp + 0x4c]
mov dword [esp + 0x28], eax
inc eax
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x4c]
xor esi, esi
mov dword [esp + 0x44], eax
mov eax, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
call fcn.005d7fd0
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x64], eax
mov byte [ebx + 0x35], 3
mov dword [ebx + 0x38], edx
mov eax, dword [ecx + 0x1c]
cmp eax, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
jle 0x604289
sub eax, dword [esp + 0x70]
mov esi, dword [ebp]
dec eax
lea ecx, [eax + eax*8]
lea ecx, [ecx*8 + 0x50]
mov dword [esp + 0x58], eax
call fcn.005d5270
mov dword [esp + 0x30], eax
test eax, eax
jne 0x60421c
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
lea ecx, [eax + 1]
mov word [edx + 2], cx
mov word [edx], cx
lea edi, [edx + 8]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x6c]
mov ecx, dword [ecx + 4]
add ecx, 8
cmp eax, 1
mov dword [esp + 0x34], ecx
jl 0x604290
add edx, 0x50
mov dword [esp + 0x48], edx
lea edx, [ebx + 0x8c]
mov dword [esp + 0x58], eax
movzx eax, byte [edx]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x48]
add dword [esp + 0x48], 0x48
lea eax, [eax + eax*8]
lea esi, [ecx + eax*8]
mov ecx, 0x12
add edx, 0x58
sub dword [esp + 0x58], 1
rep movsd dword es:[edi], dword [esi]
jne 0x604260
jmp 0x604290
mov edx, dword [ecx + 4]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x10]
and eax, 8
mov dword [esp + 0x5c], eax
jne 0x6042c1
mov eax, dword [ebp + 0x4c]
inc eax
lea ecx, [eax + 1]
mov dword [ebp + 0x4c], ecx
mov dword [esp + 0x54], ecx
xor ecx, ecx
push esi
lea edx, [ecx + 0xa]
mov dword [esp + 0x54], eax
call fcn.005d7fb0
add esp, 4
mov eax, dword [esp + 0x44]
xor ecx, ecx
push esi
lea edx, [ecx + 7]
call fcn.005d7fb0
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x18]
add esp, 4
cmp eax, 1
jle 0x604373
mov dword [esp + 0x58], 0
test eax, eax
jle 0x604373
xor esi, esi
lea esp, [esp]
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + esi]
add eax, esi
test byte [ecx + 2], 1
jne 0x60433f
test byte [eax + 0x12], 0x12
jne 0x60433f
mov edx, 0xfff
test word [eax + 0x10], dx
je 0x60433f
mov eax, dword [ebp]
push 0
push ecx
push eax
call fcn.005e5750
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [ebp]
call fcn.005dec80
add esp, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
inc eax
add esi, 0x28
cmp eax, dword [edi + 0x18]
mov dword [esp + 0x58], eax
jl 0x604300
cmp dword [esp + 0x24], 0
je 0x60436f
mov ecx, dword [esp + 0x24]
xor edx, edx
push 0
push ebp
lea eax, [edx + 0x45]
call fcn.005e54b0
add esp, 8
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xor ecx, ecx
cmp dword [eax + 0x18], ecx
mov dword [esp + 0x34], ecx
jle 0x6044e3
mov dword [esp + 0x48], ecx
mov edi, edi
mov eax, dword [eax + 0x20]
add eax, dword [esp + 0x48]
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x14]
je 0x6043af
mov ecx, 0x200
cmp word [eax + 0x10], cx
jne 0x6044c4
mov ecx, dword [esp + 0x24]
mov eax, dword [eax]
test ecx, ecx
je 0x6043be
mov dword [ecx + 8], eax
mov eax, ecx
mov edx, dword [esp + 0x28]
push edx
push 0xf0
push 0
push 0
push eax
push edi
push ebp
call fcn.00609f10
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x6044c4
movzx ecx, byte [ebx + 0x34]
mov edx, dword [esp + 0x70]
push 0
push ecx
push edx
lea eax, [esi + 0x38]
push eax
push edi
mov eax, ebp
call fcn.005e2710
add esp, 0x14
cmp word [esp + 0x5c], 0
jne 0x604461
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x18]
dec ecx
cmp dword [esp + 0x34], ecx
jne 0x604417
or edi, 0xffffffff
jmp 0x60441b
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
push 0
push edx
mov edx, dword [ecx + 0x10]
push eax
push 0xffffffffffffffff
push edx
push ebp
call fcn.005f2b90
add esp, 0x18
push edi
mov edi, dword [esp + 0x14]
mov edx, eax
mov eax, edi
call fcn.005cfe20
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x54]
add ecx, 2
push 0x72
call fcn.005de5e0
mov edi, dword [esp + 0x38]
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x24]
mov edx, 2
call fcn.005d7fb0
add esp, 4
cmp byte [esi + 0xd], 0
je 0x604489
mov dword [esp + 0x1c], 1
mov eax, dword [esi + 0x38]
test eax, 0xf0000
je 0x6044b3
test eax, 0x20000000
jne 0x6044b3
cmp dword [esp + 0x34], 0
je 0x6044aa
mov ecx, dword [esp + 0x3c]
cmp dword [esi + 0x48], ecx
jne 0x6044b3
mov edx, dword [esi + 0x48]
mov dword [esp + 0x3c], edx
jmp 0x6044bb
mov dword [esp + 0x3c], 0
push esi
call fcn.005db220
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x48], 0x28
inc ecx
cmp ecx, dword [eax + 0x18]
mov dword [esp + 0x34], ecx
jl 0x604390
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x6044f5
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x604511
mov dword [eax + 8], 0
mov ecx, dword [ebp]
push eax
push ecx
call fcn.005d9160
add esp, 8
mov eax, esi
call fcn.005cfe20
mov edx, eax
mov eax, dword [esp + 0x60]
mov ecx, esi
call fcn.005cfe30
mov eax, dword [ebx + 0x24]
xor ecx, ecx
push esi
lea edx, [ecx + 1]
call fcn.005d7fb0
mov edx, dword [esp + 0x24]
add esp, 4
mov ecx, esi
call fcn.005cfdf0
mov edx, dword [esp + 0x6c]
cmp dword [edx + 0x1c], 1
jle 0x604555
mov ecx, dword [ebp]
mov edx, edi
call fcn.005ca970
cmp dword [esp + 0x1c], 0
jne 0x603ce5
mov eax, dword [esp + 0x64]
mov esi, ebx
call fcn.005d36f0
jmp 0x603ce5
mov al, byte [esi + 0x7ce28c]
mov ecx, dword [esp + 0x14]
mov byte [ebx + 0x35], al
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x38], ecx
movzx edx, byte [esi + 0x7ce290]
push edi
call fcn.005d7fb0
add esp, 4
inc eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x36], 1
jmp 0x603ce5
cmp dword [ebx + 0x18], 0
mov eax, dword [esi]
je 0x6045af
test byte [eax + 2], 1
je 0x6045c4
mov edx, dword [esp + 0x4c]
push 8
push edx
push eax
push ebp
call fcn.00600390
add esp, 0x10
or byte [esi + 0x12], 4
dec edi
add esi, 0x28
test edi, edi
jg 0x603d10
cmp dword [ebx + 0x18], 0
je 0x604653
mov ecx, dword [esp + 0x10]
mov eax, ecx
call fcn.005cfe20
push ecx
mov ecx, 1
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x18]
lea edx, [ecx + 6]
call fcn.005d7fb0
add esp, 4
mov eax, ebp
call fcn.005d1590
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x20]
xor edi, edi
mov ecx, eax
cmp dword [ecx + 0x18], edi
jle 0x604653
mov ebx, dword [esp + 0x78]
test byte [esi + 0x12], 6
jne 0x604644
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
and ecx, dword [esp + 0x7c]
and eax, ebx
or eax, ecx
jne 0x604644
mov edx, dword [esp + 0x4c]
mov eax, dword [esi]
push 8
push edx
push eax
push ebp
call fcn.00600390
add esp, 0x10
or byte [esi + 0x12], 4
mov ecx, dword [esp + 0x18]
inc edi
add esi, 0x28
cmp edi, dword [ecx + 0x18]
jl 0x604617
jmp 0x604657
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x40]
mov edx, ebp
call fcn.005d1740
mov edx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x58
ret