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

Disassembly:
mov eax, 0x58170
call fcn.0045a570
mov eax, dword [0x48f4c8]
xor eax, esp
mov dword [esp + 0x5816c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x581a0]
mov ecx, dword [esp + 0x581a4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x581ac]
mov edx, dword [esp + 0x581a8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x581b8]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x581c4]
mov dword [esp + 0x70], eax
movzx eax, byte [esp + 0x5819a]
mov ebx, eax
movzx eax, byte [esp + 0x58199]
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x58198]
mov dword [esp + 0x44], eax
movzx eax, byte [esp + 0x5819e]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x581b0]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x581bc]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x581b4]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x5819d]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x581c8]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x581c0]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x5819c]
xor edi, edi
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x581d4]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x58184]
xor ebp, ebp
cmp ecx, edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
lea esi, [edi + 1]
je 0x40a59d
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x58188]
mov ecx, dword [esp + 0x5818c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
call dword [0x47d388]
cmp dword [0xd69a80], esi
push 0x1000
jne 0x40a60b
lea edx, [esp + 0x4c180]
push edx
call fcn.004015e0
lea eax, [esp + 0x4e184]
push 0x4000
push eax
call fcn.004015e0
lea ecx, [esp + 0x140cc]
push 0x1000
push ecx
call fcn.004015e0
lea edx, [esp + 0xd4]
push 0x1000
push edx
call fcn.004015e0
jmp 0x40a64e
lea eax, [esp + 0x4c180]
push eax
call fcn.004015a0
lea ecx, [esp + 0x4e184]
push 0x4000
push ecx
call fcn.004015a0
lea edx, [esp + 0x140cc]
push 0x1000
push edx
call fcn.004015a0
lea eax, [esp + 0xd4]
push 0x1000
push eax
call fcn.004015a0
add esp, 0x20
xor esi, esi
mov dword [esp + 0x30], esi
jmp 0x40a660
mov ecx, dword [esp + 0x34]
movzx eax, byte [ecx + esi]
test al, al
je 0x40b081
cmp al, 0xa
je 0x40b3da
cmp al, 0xd
je 0x40b3da
push eax
call fcn.00401870
mov edx, dword [esp + 0x38]
add esp, 4
test eax, eax
je 0x40a7a9
mov ax, word [edx + esi]
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dh, byte [esp + 0x44]
mov dword [esp + ebp*4 + 0xbc], ecx
xor ecx, ecx
mov ch, byte [esp + 0x4c]
mov word [esp + ebp*2 + 0x4c17c], ax
movzx eax, bl
mov dl, byte [esp + 0x40]
mov dword [esp + ebp*4 + 0x140bc], edi
mov cl, byte [esp + 0x20]
add ebp, 1
add esi, 2
mov dword [esp + 0x30], esi
shl edx, 8
or edx, eax
movzx eax, word [esp + ebp*2 + 0x4c17a]
mov dword [esp + ebp*4 + 0x40b8], edx
movzx edx, byte [esp + 0x1c]
shl ecx, 8
or ecx, edx
cmp eax, 0x4881
mov dword [esp + ebp*4 + 0x80b8], ecx
jg 0x40a76d
je 0x40a759
cmp eax, 0x4181
je 0x40a744
cmp eax, 0x4281
je 0x40a72f
cmp eax, 0x4581
jne 0x40b061
mov eax, dword [0x4d41f0]
imul eax, dword [esp + 0x581d0]
sub edi, eax
jmp 0x40b068
mov ecx, dword [0x4d41ec]
imul ecx, dword [esp + 0x581d0]
sub edi, ecx
jmp 0x40b068
mov edx, dword [0x4d41e8]
imul edx, dword [esp + 0x581d0]
sub edi, edx
jmp 0x40b068
mov eax, dword [0x4d41f8]
imul eax, dword [esp + 0x581d0]
sub edi, eax
jmp 0x40b068
cmp eax, 0x4981
je 0x40a794
cmp eax, 0x6381
jne 0x40b061
mov ecx, dword [0x4d41f4]
imul ecx, dword [esp + 0x581d0]
sub edi, ecx
jmp 0x40b068
mov edx, dword [0x4d41fc]
imul edx, dword [esp + 0x581d0]
sub edi, edx
jmp 0x40b068
mov al, byte [edx + esi]
movsx ecx, al
add ecx, 0xffffffd8
cmp ecx, 0x37
ja case.0x40a7c2.41
movzx ecx, byte [ecx + 0x40b8a0]
jmp dword [ecx*4 + 0x40b890]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x10], ecx
add esi, 1
mov ebx, edx
mov dl, byte [ebx + esi]
add esi, 1
cmp dl, 0x29
jne 0x40a7f0
mov byte [esp + ecx + 0x4c0fc], 0
mov ecx, 0x80
jmp 0x40a7f7
mov byte [esp + ecx + 0x4c0fc], dl
add ecx, 1
cmp ecx, 0x80
jl 0x40a7d6
movsx ecx, byte [esp + 0x4c0fc]
add ecx, 0xffffffbd
cmp ecx, 0x36
mov dword [esp + 0x30], esi
ja case.0x40a821.68
movzx edx, byte [ecx + 0x40b8f8]
jmp dword [edx*4 + 0x40b8d8]
mov esi, 2
xor ecx, ecx
nop
mov dl, byte [esp + esi + 0x4c0fc]
test dl, dl
je 0x40a870
cmp dl, 0x2c
jne 0x40a856
add dword [esp + 0x10], 1
add eax, ecx
mov byte [esp + eax + 0x4c0bc], 0
add ecx, 0xa
xor eax, eax
jmp 0x40a863
lea ebx, [eax + ecx]
mov byte [esp + ebx + 0x4c0bc], dl
add eax, 1
add esi, 1
cmp esi, 0x80
jl 0x40a830
jmp 0x40a882
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov byte [esp + edx + 0x4c0bc], 0
cmp dword [esp + 0x581cc], 1
jne case.0x40a821.68
lea eax, [esp + 0x4c0bc]
push eax
call fcn.0042f8c0
lea ecx, [esp + 0x4c0ca]
push ecx
mov dword [esp + 0x58], eax
call fcn.0042f8c0
lea edx, [esp + 0x4c0d8]
push edx
mov dword [esp + 0x4c], eax
call fcn.0042f8c0
add esp, 0xc
mov dword [esp + 0x44], eax
jmp case.0x40a821.68
mov esi, 2
xor ecx, ecx
mov dl, byte [esp + esi + 0x4c0fc]
test dl, dl
je 0x40a912
cmp dl, 0x2c
jne 0x40a8f8
add dword [esp + 0x10], 1
add eax, ecx
mov byte [esp + eax + 0x4c0bc], 0
add ecx, 0xa
xor eax, eax
jmp 0x40a905
lea ebx, [ecx + eax]
mov byte [esp + ebx + 0x4c0bc], dl
add eax, 1
add esi, 1
cmp esi, 0x80
jl 0x40a8d2
jmp 0x40a924
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*2]
mov byte [esp + edx + 0x4c0bc], 0
cmp dword [esp + 0x581cc], 1
jne case.0x40a821.68
lea eax, [esp + 0x4c0bc]
push eax
call fcn.0042f8c0
lea ecx, [esp + 0x4c0ca]
push ecx
mov dword [esp + 0x24], eax
call fcn.0042f8c0
lea edx, [esp + 0x4c0d8]
push edx
mov dword [esp + 0x2c], eax
call fcn.0042f8c0
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp case.0x40a821.68
lea ebx, [esp + 0x4c0bc]
lea edx, [esp + 0x4c0fe]
mov ecx, 2
sub ebx, edx
jmp 0x40a990
mov dl, byte [esp + ecx + 0x4c0fc]
test dl, dl
lea esi, [esp + ecx + 0x4c0fc]
je 0x40a9b5
add ecx, 1
add eax, 1
cmp ecx, 0x80
mov byte [esi + ebx], dl
jl 0x40a990
jmp 0x40a9bd
mov byte [esp + eax + 0x4c0bc], 0
cmp dword [esp + 0x581cc], 1
jne case.0x40a821.68
lea eax, [esp + 0x4c0bc]
push eax
call fcn.0042f8c0
add esp, 4
mov dword [esp + 0x28], eax
jmp case.0x40a821.68
movzx eax, byte [esp + 0x5819a]
mov ecx, dword [esp + 0x58184]
mov dword [esp + 0x50], eax
movzx eax, byte [esp + 0x58199]
mov dword [esp + 0x40], eax
movzx eax, byte [esp + 0x58198]
mov dword [esp + 0x44], eax
movzx eax, byte [esp + 0x5819e]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x5819d]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x5819c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], ecx
jmp case.0x40a821.68
mov edx, dword [esp + 0x28]
mov word [esp + ebp*2 + 0x4c17c], 0xa
mov dword [esp + ebp*4 + 0xbc], edx
add ebp, 1
add dword [esp + 0x54], 1
jmp case.0x40a821.68
xor ebx, ebx
mov esi, ebp
xor edi, edi
sub esi, dword [esp + 0x54]
mov dword [esp + 0x58], ebx
lea esp, [esp]
movzx eax, byte [esp + ebx + 0x4c0fe]
test al, al
je 0x40aae2
push eax
call fcn.00401870
add esp, 4
test eax, eax
push 2
je 0x40aaaa
lea eax, [esp + ebx + 0x4c102]
push eax
lea eax, [edi + esi*4]
add eax, esi
lea ecx, [esp + eax*2 + 0x4e184]
push ecx
call fcn.004014b0
add ebx, 2
jmp 0x40aad4
mov dl, byte [esp + ebx + 0x4c102]
lea ecx, [edi + esi*4]
lea eax, [esp + 0x1c]
add ecx, esi
mov byte [esp + 0x1c], dl
push eax
lea edx, [esp + ecx*2 + 0x4e184]
push edx
mov byte [esp + 0x25], 0
call fcn.004014b0
add ebx, 1
add esp, 0xc
add edi, 1
cmp ebx, 0x80
jl 0x40aa70
cmp dword [esp + 0x581cc], 1
jne 0x40aaf7
lea eax, [esi + esi*4]
mov word [esp + eax*2 + 0x4e182], di
lea eax, [esi + esi*4]
add eax, eax
cmp word [esp + eax + 0x4e182], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], eax
jbe 0x40ac07
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + esi*4 + 0x40bc]
lea edx, [esp + esi*8 + 0xc0c0]
lea eax, [esp + esi*8 + 0xc0bc]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x38], eax
lea ebx, [esp + ebx + 0x4e17c]
lea esp, [esp]
mov ecx, dword [esp + 0x8c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
push 0xff
push ebx
push edx
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
sub ecx, 5
push ecx
push eax
mov eax, dword [0x4be1b0]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
imul esi, esi, 0x178
sub esp, 0x178
mov edi, esp
add esi, 0x723378
mov ecx, 0x5e
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x234]
push ecx
call fcn.0040a0b0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [esp + 0x228], ecx
mov ecx, dword [eax + 0xc]
add dword [esp + 0x1e8], ecx
mov ecx, dword [esp + 0x1cc]
mov dword [esp + 0x224], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x22c], edx
movzx edx, word [esp + ecx + 0x4e312]
add eax, 1
add esp, 0x190
add ebx, 2
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x40ab50
mov ax, word [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
mov word [esp + ecx + 0x4e184], ax
jmp case.0x40a821.68
cmp dword [esp + 0x5c], 0
je case.0x40a821.68
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x80]
mov eax, ebp
sub eax, dword [esp + 0x54]
mov dword [esp + ebp*4 + 0x140bc], edi
mov word [esp + ebp*2 + 0x4c17c], 0x4081
mov dword [esp + ebp*4 + 0xbc], edx
mov dword [ecx + eax*4], 1
add ebp, 1
jmp case.0x40a821.68
add esi, 1
xor eax, eax
lea esp, [esp]
mov cl, byte [edx + esi]
add esi, 1
cmp cl, 0x3e
jne 0x40ac8a
mov byte [esp + eax + 0x4c0fc], 0
mov eax, 0x80
jmp 0x40ac91
mov byte [esp + eax + 0x4c0fc], cl
add eax, 1
cmp eax, 0x80
jl 0x40ac70
lea eax, [esp + 0x4c0fc]
mov dword [esp + 0x30], esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40acb0
sub eax, edx
test eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], 0
jle case.0x40a821.68
movzx edx, byte [esp + 0x50]
movzx ecx, byte [esp + 0x1c]
xor ebx, ebx
mov bh, byte [esp + 0x44]
xor eax, eax
mov ah, byte [esp + 0x4c]
lea esi, [esp + ebp*2 + 0x4c17c]
mov bl, byte [esp + 0x40]
mov al, byte [esp + 0x20]
shl ebx, 8
or ebx, edx
shl eax, 8
or eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x4c0fc]
push eax
call fcn.00401870
add esp, 4
test eax, eax
je 0x40ad64
mov eax, dword [esp + 0x10]
mov cx, word [esp + eax + 0x4c0fc]
mov edx, dword [esp + 0x28]
mov word [esi], cx
mov ecx, dword [esp + 0x14]
mov dword [esp + ebp*4 + 0x140bc], edi
sub edi, dword [esp + 0x581d0]
mov dword [esp + ebp*4 + 0xbc], edx
mov dword [esp + ebp*4 + 0x40bc], ebx
mov dword [esp + ebp*4 + 0x80bc], ecx
add ebp, 1
add esi, 2
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x40adbe
mov edx, dword [esp + 0x10]
mov al, byte [esp + edx + 0x4c0fc]
mov byte [esp + 0x18], al
push 2
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [esp + 0x25], 0
call fcn.004014b0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + ebp*4 + 0x140c8], edi
sub edi, dword [esp + 0x581dc]
mov dword [esp + ebp*4 + 0xc8], ecx
mov dword [esp + ebp*4 + 0x40c8], ebx
mov dword [esp + ebp*4 + 0x80c8], edx
add esp, 0xc
add ebp, 1
add esi, 2
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x38]
jl 0x40ad02
jmp 0x40b068
mov ebx, dword [esp + 0x30]
xor esi, esi
mov ecx, dword [esp + 0x34]
movzx edx, byte [ecx + ebx]
push edx
call fcn.00401870
add esp, 4
test eax, eax
je 0x40adfb
mov byte [esp + esi + 0x4c0bc], 0
mov esi, 0x40
jmp 0x40ae31
mov eax, dword [esp + 0x34]
mov al, byte [eax + ebx]
test al, al
jne 0x40ae14
mov byte [esp + esi + 0x4c0bc], al
mov esi, 0x40
jmp 0x40ae31
cmp al, 0x28
jne 0x40ae27
mov byte [esp + esi + 0x4c0bc], 0
mov esi, 0x40
jmp 0x40ae31
mov byte [esp + esi + 0x4c0bc], al
add ebx, 1
add esi, 1
cmp esi, 0x40
jl 0x40add7
lea ecx, [esp + 0x4c0bc]
push ecx
mov dword [esp + 0x34], ebx
call fcn.004306a0
add esp, 4
sub eax, 0
je 0x40aea4
sub eax, 1
je 0x40ae7d
lea edx, [esp + 0x4c0bc]
push edx
push 0x47ece8
push 0x4a7208
call fcn.0045a6e7
push 0x4a7208
call fcn.00408cb0
add esp, 0x10
jmp 0x40aec6
lea eax, [esp + 0x4c0bc]
push eax
call fcn.0042f500
add esp, 4
lea edx, [esp + 0x4c0fc]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x40ae94
jmp 0x40aec6
lea ecx, [esp + 0x4c0bc]
push ecx
call fcn.0042f8c0
push 0
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x4c10c]
push edx
call fcn.0040a270
add esp, 0x14
lea eax, [esp + 0x4c0fc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40aed0
sub eax, edx
test eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x10], 0
jle case.0x40a821.68
movzx eax, byte [esp + 0x50]
xor ebx, ebx
mov bh, byte [esp + 0x44]
movzx ecx, byte [esp + 0x1c]
lea esi, [esp + ebp*2 + 0x4c17c]
mov bl, byte [esp + 0x40]
shl ebx, 8
or ebx, eax
xor eax, eax
mov ah, byte [esp + 0x4c]
mov al, byte [esp + 0x20]
shl eax, 8
or eax, ecx
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x10]
movzx eax, byte [esp + edx + 0x4c0fc]
push eax
call fcn.00401870
add esp, 4
test eax, eax
je 0x40af84
mov eax, dword [esp + 0x10]
mov cx, word [esp + eax + 0x4c0fc]
mov edx, dword [esp + 0x28]
mov word [esi], cx
mov ecx, dword [esp + 0x14]
mov dword [esp + ebp*4 + 0x140bc], edi
sub edi, dword [esp + 0x581d0]
mov dword [esp + ebp*4 + 0xbc], edx
mov dword [esp + ebp*4 + 0x40bc], ebx
mov dword [esp + ebp*4 + 0x80bc], ecx
add ebp, 1
add esi, 2
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x40afde
mov edx, dword [esp + 0x10]
mov al, byte [esp + edx + 0x4c0fc]
mov byte [esp + 0x18], al
push 2
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [esp + 0x25], 0
call fcn.004014b0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esp + ebp*4 + 0x140c8], edi
sub edi, dword [esp + 0x581dc]
mov dword [esp + ebp*4 + 0xc8], ecx
mov dword [esp + ebp*4 + 0x40c8], ebx
mov dword [esp + ebp*4 + 0x80c8], edx
add esp, 0xc
add ebp, 1
add esi, 2
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x38]
jl 0x40af22
jmp 0x40b068
push 2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + ebp*2 + 0x4c184]
add esi, 1
push edx
mov byte [esp + 0x24], al
mov byte [esp + 0x25], 0
mov dword [esp + 0x3c], esi
call fcn.004014b0
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov ch, byte [esp + 0x50]
mov dword [esp + ebp*4 + 0xc8], eax
xor eax, eax
mov ah, byte [esp + 0x58]
movzx edx, bl
mov cl, byte [esp + 0x4c]
add esp, 0xc
mov dword [esp + ebp*4 + 0x140bc], edi
mov al, byte [esp + 0x20]
shl ecx, 8
or ecx, edx
mov dword [esp + ebp*4 + 0x40bc], ecx
movzx ecx, byte [esp + 0x1c]
shl eax, 8
or eax, ecx
mov dword [esp + ebp*4 + 0x80bc], eax
add ebp, 1
sub edi, dword [esp + 0x581d0]
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x30]
cmp esi, 0x1000
jge 0x40b08b
mov ebx, dword [esp + 0x50]
jmp 0x40a660
mov word [esp + ebp*2 + 0x4c17c], 0
call dword [0x47d388]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x3c], ebx
jle 0x40b655
lea eax, [esp + 0x380bc]
lea ecx, [esp + 0x4c17c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x40b0c0
lea ecx, [ebx*4]
mov edx, dword [esp + ecx + 0xbc]
imul edx, edx, 0x178
mov eax, dword [edx + 0x723804]
cmp dword [esp + 0x48], eax
jge 0x40b0e4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
cmp word [eax], 0xa
jne 0x40b1f9
mov edx, dword [esp + 0x58184]
mov eax, dword [esp + edx*4 + 0xbc]
imul eax, eax, 0x178
cmp ebx, ebp
mov edx, dword [eax + 0x723804]
mov dword [esp + 0x38], edx
mov esi, ebx
jge 0x40b1b0
mov eax, dword [esp + 0x20]
lea edx, [esp + ebx*8 + 0xc0bc]
jmp 0x40b130
mov di, word [esp + esi*2 + 0x4c17e]
mov word [esp + esi*2 + 0x4c17c], di
mov edi, dword [esp + ecx + 0x140c0]
mov dword [esp + ecx + 0x140bc], edi
mov edi, dword [esp + ecx + 0xc0]
mov dword [esp + ecx + 0xbc], edi
mov edi, dword [esp + ecx + 0x40c0]
mov dword [esp + ecx + 0x40bc], edi
mov edi, dword [esp + ecx + 0x80c0]
mov dword [esp + ecx + 0x80bc], edi
mov edi, dword [eax + 0x14]
mov dword [eax], edi
mov edi, dword [eax + 0x18]
mov dword [eax + 4], edi
mov edi, dword [eax + 0x1c]
mov dword [eax + 8], edi
mov edi, dword [eax + 0x20]
mov dword [eax + 0xc], edi
mov edi, dword [eax + 0x24]
mov dword [eax + 0x10], edi
mov edi, dword [edx + 8]
mov dword [edx], edi
mov edi, dword [edx + 0xc]
mov dword [edx + 4], edi
add esi, 1
add ecx, 4
add eax, 0x14
add edx, 8
cmp esi, ebp
jl 0x40b130
mov ecx, dword [esp + 0x58184]
mov edx, dword [esp + ecx*4 + 0xbc]
mov eax, dword [esp + 0x58188]
imul edx, edx, 0x178
mov ecx, dword [edx + 0x723808]
add ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
add eax, ecx
add edx, eax
sub ebp, 1
cmp edx, dword [esp + 0x58194]
mov dword [esp + 0x2c], eax
jg 0x40b5ae
mov eax, dword [esp + ebx*4 + 0x140bc]
mov esi, dword [esp + ebx*4 + 0xbc]
mov ecx, dword [esp + 0x1c]
imul esi, esi, 0x178
mov edx, dword [esp + ebx*4 + 0x40bc]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
sub esp, 0x178
lea edx, [esp + 0x234]
mov edi, esp
add esi, 0x7237e0
mov ecx, 0x5e
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040a0b0
mov edx, dword [eax]
mov ecx, dword [esp + 0x1b0]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [ecx + 0xc]
add ecx, dword [esp + 0x1b4]
add esp, 0x190
cmp ecx, dword [esp + 0x58190]
jle 0x40b4eb
mov edx, dword [esp + 0x1c]
movzx eax, word [edx]
cmp eax, 0x7681
jg 0x40b45d
je 0x40b4d2
cmp eax, 0x4683
jg 0x40b416
je 0x40b4d2
cmp eax, 0x4283
jg 0x40b3f6
je 0x40b4d2
cmp eax, 0x4083
je 0x40b4d2
cmp eax, 0x4181
je 0x40b4d2
cmp eax, 0x4281
je 0x40b4d2
mov eax, dword [esp + 0x58188]
mov ecx, dword [esp + 0x58184]
mov dword [esp + 0x24], eax
mov eax, dword [esp + ecx*4 + 0xbc]
mov ecx, dword [esp + 0x2c]
imul eax, eax, 0x178
mov esi, dword [eax + 0x723808]
add esi, dword [esp + 0x48]
mov eax, dword [eax + 0x723804]
add ecx, esi
xor edx, edx
add eax, ecx
cmp eax, dword [esp + 0x58194]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ecx
jle 0x40b4e7
mov esi, dword [esp + 0x1c]
mov cx, word [0x47ece4]
mov dl, byte [0x47ece6]
push 2
lea eax, [esp + 0x14]
push eax
add esi, 0xfffffffe
push esi
mov word [esp + 0x1c], cx
mov byte [esp + 0x1e], dl
call fcn.004014b0
mov ecx, dword [esp + ebx*4 + 0x140c4]
mov edx, dword [esp + ebx*4 + 0x40c4]
mov eax, dword [esp + 0x38]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x5818c]
push esi
mov esi, dword [esp + ebx*4 + 0xc0]
push edx
imul esi, esi, 0x178
push eax
push ecx
sub esp, 0x178
lea edx, [esp + 0x234]
mov edi, esp
add esi, 0x7237e0
mov ecx, 0x5e
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.0040a0b0
mov edx, dword [eax]
mov ecx, dword [esp + 0x1b0]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 0x10]
add esp, 0x190
mov dword [ecx + 0x10], eax
mov ebp, ebx
jmp 0x40b4eb
push 0x47ecb0
call fcn.00408cb0
mov edx, dword [esp + 0x38]
push edx
call fcn.00408cb0
add esp, 8
jmp 0x40b873
cmp eax, 0x4381
je 0x40b4d2
cmp eax, 0x4483
je 0x40b4d2
cmp eax, 0x4581
jmp 0x40b2dc
cmp eax, 0x5881
jg 0x40b441
je 0x40b4d2
sub eax, 0x4881
je 0x40b4d2
sub eax, 2
je 0x40b4d2
sub eax, 0xfe
jmp 0x40b2dc
cmp eax, 0x5b81
je 0x40b4d2
cmp eax, 0x6283
je 0x40b4d2
cmp eax, 0x6a81
jmp 0x40b2dc
cmp eax, 0xa382
jg 0x40b49f
je 0x40b4d2
cmp eax, 0x8583
jg 0x40b487
je 0x40b4d2
cmp eax, 0x7881
je 0x40b4d2
cmp eax, 0x7a81
je 0x40b4d2
cmp eax, 0x8383
jmp 0x40b2dc
cmp eax, 0x8783
je 0x40b4d2
cmp eax, 0x9f82
je 0x40b4d2
cmp eax, 0xa182
jmp 0x40b2dc
cmp eax, 0xe182
jg 0x40b4c0
je 0x40b4d2
cmp eax, 0xa582
je 0x40b4d2
cmp eax, 0xa782
je 0x40b4d2
cmp eax, 0xc182
jmp 0x40b2dc
cmp eax, 0xe382
je 0x40b4d2
cmp eax, 0xe582
jne 0x40b2e2
cmp dword [esp + 0x3c], 0
jne 0x40b2e2
mov dword [esp + 0x3c], 1
jmp 0x40b4eb
mov dword [esp + 0x48], edx
cmp dword [esp + 0x5c], 0
je 0x40b55e
mov eax, dword [esp + 0x80]
cmp dword [eax + ebx*4], 1
jne 0x40b55e
mov eax, dword [eax + ebx*4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
shl eax, 5
cmp dword [esp + 0x581d8], 0
mov dword [esp + ebx*8 + 0xc0bc], ecx
mov dword [esp + ebx*8 + 0xc0c0], edx
jne 0x40b545
mov ecx, dword [eax + 0x4be1a0]
mov eax, dword [eax + 0x4be1a4]
add dword [esp + 0x24], ecx
mov dword [esp + ebx*8 + 0x180bc], ecx
mov dword [esp + ebx*8 + 0x180c0], eax
jmp 0x40b594
mov ecx, dword [eax + 0x4be1b0]
mov edx, dword [eax + 0x4be1b4]
add dword [esp + 0x24], ecx
mov dword [esp + ebx*8 + 0x180bc], ecx
jmp 0x40b58d
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [esp + ebx*8 + 0xc0c0], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
mov dword [esp + ebx*8 + 0xc0bc], eax
add eax, dword [ecx + 0xc]
mov dword [esp + ebx*8 + 0x180bc], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov dword [esp + ebx*8 + 0x180c0], edx
add dword [esp + 0x1c], 2
add dword [esp + 0x20], 0x14
add ebx, 1
cmp ebx, ebp
jl 0x40b0c0
jmp 0x40b655
mov ax, word [0x47ece4]
mov cl, byte [0x47ece6]
push 2
lea edx, [esp + 0x14]
push edx
lea esi, [esp + ebx*2 + 0x4c182]
push esi
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], cl
call fcn.004014b0
mov eax, dword [esp + ebx*4 + 0x140c4]
mov ecx, dword [esp + ebx*4 + 0x40c4]
mov edx, dword [esp + 0x38]
add esp, 0xc
push eax
mov eax, dword [esp + 0x5818c]
push esi
mov esi, dword [esp + ebx*4 + 0xc0]
push ecx
imul esi, esi, 0x178
push edx
push eax
sub esp, 0x178
mov edi, esp
add esi, 0x7237e0
mov ecx, 0x5e
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x234]
push ecx
call fcn.0040a0b0
mov ebp, dword [eax + 0xc]
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0x10]
lea ecx, [ebx + ebx*4]
lea ecx, [esp + ecx*4 + 0x3824c]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebp
add esp, 0x190
mov dword [ecx + 0x10], eax
mov ebp, ebx
call dword [0x47d388]
cmp dword [0xd69a80], 1
push 0x2000
jne 0x40b771
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x4c180]
push edx
push eax
call fcn.00401500
mov edx, dword [esp + 0x88]
push 0xa000
lea ecx, [esp + 0x4e18c]
push ecx
push edx
call fcn.00401500
mov ecx, dword [esp + 0x84]
push 0x4000
lea eax, [esp + 0x140d8]
push eax
push ecx
call fcn.00401500
mov eax, dword [esp + 0x84]
push 0x4000
lea edx, [esp + 0xe4]
push edx
push eax
call fcn.00401500
mov edx, dword [esp + 0xa4]
push 0x4000
lea ecx, [esp + 0x40f0]
push ecx
push edx
call fcn.00401500
mov ecx, dword [esp + 0xc4]
push 0x4000
lea eax, [esp + 0x80fc]
push eax
push ecx
call fcn.00401500
mov eax, dword [esp + 0xac]
add esp, 0x48
push 0x14000
lea edx, [esp + 0x380c0]
push edx
push eax
call fcn.00401500
mov edx, dword [esp + 0x74]
push 0x8000
lea ecx, [esp + 0xc0cc]
push ecx
push edx
call fcn.00401500
mov ecx, dword [esp + 0x88]
push 0x18000
lea eax, [esp + 0x200d8]
push eax
push ecx
call fcn.00401500
mov eax, dword [esp + 0x9c]
push 0x8000
lea edx, [esp + 0x180e4]
push edx
push eax
call fcn.00401500
jmp 0x40b870
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x4c180]
push ecx
push edx
call fcn.004014b0
mov ecx, dword [esp + 0x88]
push 0xa000
lea eax, [esp + 0x4e18c]
push eax
push ecx
call fcn.004014b0
mov eax, dword [esp + 0x84]
push 0x4000
lea edx, [esp + 0x140d8]
push edx
push eax
call fcn.004014b0
mov edx, dword [esp + 0x84]
push 0x4000
lea ecx, [esp + 0xe4]
push ecx
push edx
call fcn.004014b0
mov ecx, dword [esp + 0xa4]
push 0x4000
lea eax, [esp + 0x40f0]
push eax
push ecx
call fcn.004014b0
mov eax, dword [esp + 0xc4]
push 0x4000
lea edx, [esp + 0x80fc]
push edx
push eax
call fcn.004014b0
mov edx, dword [esp + 0xac]
add esp, 0x48
push 0x14000
lea ecx, [esp + 0x380c0]
push ecx
push edx
call fcn.004014b0
mov ecx, dword [esp + 0x74]
push 0x8000
lea eax, [esp + 0xc0cc]
push eax
push ecx
call fcn.004014b0
mov eax, dword [esp + 0x88]
push 0x18000
lea edx, [esp + 0x200d8]
push edx
push eax
call fcn.004014b0
mov edx, dword [esp + 0x9c]
push 0x8000
lea ecx, [esp + 0x180e4]
push ecx
push edx
call fcn.004014b0
add esp, 0x30
mov ecx, dword [esp + 0x5817c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0045a554
add esp, 0x58170
ret