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

Disassembly:
sub esp, 0x64
mov ecx, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x74]
mov eax, dword [esi]
mov ebp, dword [eax + 8]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov ebx, dword [ecx + esi + 0x320]
mov dword [esp + 0x4c], eax
movzx eax, byte [ecx + esi + 0x30c]
push edi
lea edi, [ecx + esi + 0x2e0]
lea edx, [esi + 0x148]
mov dword [esp + 0x54], edx
lea edx, [eax + eax*8]
mov eax, dword [esi + 4]
lea eax, [eax + edx*8 + 8]
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0x44]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x1c], edx
jle 0x4361b6
lea ebx, [esi + 0x48]
lea ecx, [ecx]
cmp dword [ebx], edx
je 0x436342
add ecx, 1
add ebx, 4
cmp ecx, eax
jl 0x4361a0
mov ebx, dword [esp + 0x48]
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x7c]
not eax
and eax, dword [esp + 0x80]
not edx
and edx, dword [esp + 0x84]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], edx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
call fcn.0046e990
and eax, 1
test byte [ebx + 0x24], 0x40
mov dword [esp + 0x24], eax
je 0x4361fc
test byte [esi + 0x22], 0x20
mov dword [esp + 0x70], 1
je 0x436204
mov dword [esp + 0x70], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x6c]
lea edx, [ecx + 1]
mov dword [eax + 0x6c], edx
lea edx, [ecx - 1]
test ecx, edx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], ecx
jne 0x436250
mov eax, ecx
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x7c]
mov ebx, dword [eax + 0x70]
mov eax, dword [eax]
push 0
push ecx
call fcn.00415350
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x74]
mov dword [edx + 0x70], eax
add esp, 8
mov eax, edx
mov eax, dword [eax + 0x70]
test eax, eax
je 0x43625e
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx + 0x6c]
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
lea edx, [eax - 1]
test eax, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x6c], eax
jne 0x4362b4
lea ecx, [eax*8 + 4]
mov eax, dword [esp + 0x58]
mov ebx, dword [eax + 0x70]
mov eax, dword [eax]
push 0
push ecx
call fcn.00415350
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x50]
mov dword [edx + 0x70], eax
mov eax, dword [esp + 0x74]
add esp, 8
mov ecx, edx
mov ecx, dword [ecx + 0x70]
test ecx, ecx
je 0x4362c2
mov dword [ecx + eax*4], 0xffffffff
or ecx, 0xffffffff
sub ecx, eax
cmp byte [edi + 0x2c], 0
mov dword [esp + 0x58], ecx
mov dword [edi + 0x18], ecx
jbe 0x436305
mov eax, dword [esp + 0x4c]
test byte [eax + 0x24], 8
je 0x436305
mov eax, dword [esp + 0x18]
add dword [eax + 0x48], 1
mov eax, dword [eax + 0x48]
push eax
push 0
push 0x17
mov esi, ebp
mov dword [edi], eax
call fcn.004175e0
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x84]
add esp, 0xc
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x28]
test dl, 4
je 0x436357
mov eax, ecx
mov edx, dword [eax + 0x18]
mov ebx, dword [eax + 0x1c]
push edx
push 0
push ebx
push 0x11
mov esi, ebp
call fcn.00416370
mov eax, dword [esp + 0x8c]
push eax
push ebx
push 0x14
call fcn.004175e0
add esp, 0x1c
mov byte [edi + 0x2d], 0xe
jmp 0x436ba7
mov eax, 1
xor edx, edx
call fcn.0046e7b0
mov ebx, dword [esp + 0x48]
jmp 0x4361ba
mov ecx, dword [ebx + 0x24]
mov eax, ecx
and eax, 0x100
je 0x4363e9
test cl, 5
je 0x4363e9
mov ecx, dword [ebx + 0x30]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx]
add dword [edx + 0x48], 1
mov esi, dword [edx + 0x48]
push edi
mov eax, esi
call fcn.00430c10
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x436396
mov edx, dword [esp + 0x18]
call fcn.00403040
mov eax, dword [edi + 0x10]
push eax
push ebx
push 0x26
mov esi, ebp
mov dword [esp + 0x48], eax
call fcn.004175e0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x28]
add esp, 0xc
push ebx
push edx
push eax
push 0x49
call fcn.00416370
mov esi, dword [esp + 0x28]
push ebx
mov eax, 1
call fcn.00407c80
mov ecx, dword [esp + 0x30]
add esp, 0x14
push 0xffffffffffffffff
push ecx
mov edx, esi
call fcn.00403390
add esp, 8
mov byte [edi + 0x2d], 0x9f
jmp 0x436baa
test eax, eax
je 0x4365c9
test cl, 2
je 0x4365c9
xor edx, edx
xor eax, eax
xor edi, edi
test cl, 0x20
mov dword [esp + 0x44], 0x9f
mov dword [esp + 0x6c], edx
mov dword [esp + 0x48], edx
je 0x43641d
mov eax, dword [ebx + 0x30]
mov edi, dword [eax]
lea eax, [edx + 1]
test cl, 0x10
je 0x43642c
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x48], edx
cmp dword [esp + 0x24], 0
je 0x43643b
mov eax, edi
mov edi, edx
mov dword [esp + 0x48], eax
test edi, edi
je 0x4364bc
mov esi, dword [edi]
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x68]
push edx
mov ecx, ebx
mov byte [esp + 0x50], 0x42
mov byte [esp + 0x51], 0x40
mov byte [esp + 0x52], 0x3f
mov byte [esp + 0x53], 0x41
call fcn.00416f40
movzx edx, byte [esi]
mov ecx, dword [esp + 0x20]
add esp, 4
push eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
push eax
movzx eax, byte [esp + edx + 4]
push ecx
push eax
mov esi, ebp
call fcn.00416370
mov ecx, dword [esp + 0x80]
push ecx
mov eax, 1
mov esi, ebx
call fcn.00407c80
mov esi, dword [esp + 0x7c]
add esp, 0x14
mov edx, ebx
call fcn.00403040
mov eax, edi
mov edi, dword [esp + 0x2c]
call fcn.00402960
jmp 0x4364e7
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
neg ecx
sbb ecx, ecx
push edx
and ecx, 0xfffffffd
push eax
add ecx, 0x6d
push ecx
mov esi, ebp
call fcn.004175e0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esp + 0x48]
test eax, eax
je 0x436541
mov esi, dword [eax]
add dword [ebx + 0x48], 1
mov eax, dword [ebx + 0x48]
mov edx, dword [esi + 0x10]
push eax
push edx
push ebx
mov dword [esp + 0x78], eax
call fcn.00430f20
mov al, byte [esi]
add esp, 0xc
cmp al, 0x52
je 0x436527
cmp al, 0x50
je 0x436527
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
lea eax, [eax + eax + 0x50]
mov dword [esp + 0x44], eax
jmp 0x436538
xor ecx, ecx
cmp dword [esp + 0x24], ecx
sete cl
lea ecx, [ecx + ecx + 0x51]
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x48]
call fcn.00402960
cmp dword [esp + 0x24], 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x1c]
sete dl
add dl, 7
cmp dword [esp + 0x44], 0x9f
mov byte [edi + 0x2d], dl
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
je 0x436baa
mov edi, dword [esp + 0x18]
add dword [edi + 0x48], 1
mov ebx, dword [edi + 0x48]
push ebx
mov edx, ecx
push edx
push 0x68
mov esi, ebp
call fcn.004175e0
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0xffffffffffffffff
push eax
mov edx, edi
call fcn.00403390
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x4c]
push ebx
push ecx
push edx
push eax
call fcn.00416370
mov eax, dword [ebp + 4]
add esp, 0x18
test eax, eax
je 0x436baa
mov ecx, dword [ebp + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x53
jmp 0x436baa
test ecx, 0x200
je 0x436b69
movzx eax, word [ebx + 0x18]
xor edx, edx
test byte [esi + 0x22], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], edx
mov byte [esp + 0x16], dl
mov byte [esp + 0x7c], dl
mov byte [esp + 0x17], dl
mov edx, dword [ebx + 0x1c]
mov dword [esp + 0x44], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], edx
je 0x43662c
cmp byte [esi + 0x24], 0
jle 0x43662c
mov edx, dword [esp + 0x44]
cmp word [edx + 0x2e], ax
jbe 0x43662c
mov byte [esp + 0x7c], 1
mov dword [esp + 0x3c], 1
test cl, 0x20
movzx esi, ax
mov dword [esp + 0x34], esi
mov eax, esi
je 0x43664f
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + eax*4]
mov dword [esp + 0x40], edx
add eax, 1
mov dword [esp + 0x3c], 1
test cl, 0x10
je 0x4366db
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + eax*4]
test word [eax + 0x14], 0x100
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 1
je 0x4366b0
mov eax, dword [esp + 0x18]
add dword [eax + 0x48], 1
mov eax, dword [eax + 0x48]
mov edx, dword [esp + 0x44]
push eax
mov dword [edi + 0x24], eax
mov eax, dword [edx + 0x1c]
mov edx, dword [esp + 0x38]
xor ecx, ecx
cmp byte [edx + eax], 1
mov esi, ebp
sete cl
xor ecx, dword [esp + 0x28]
push ecx
push 0x17
call fcn.004175e0
mov eax, dword [ebp + 0x20]
mov esi, dword [esp + 0x40]
add esp, 0xc
mov dword [edi + 0x28], eax
cmp dword [esp + 0x40], 0
jne 0x4366db
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
movsx eax, word [edx + esi*2]
test eax, eax
jl 0x4366db
mov ecx, dword [ecx + 0xc]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
cmp byte [eax + edx*8 + 0x14], 0
jne 0x4366db
mov byte [esp + 0x7c], 1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
push eax
mov eax, ebx
call fcn.00433380
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x38]
add esp, 0x10
test eax, eax
je 0x43670c
mov cl, byte [esi + eax]
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x44]
movzx eax, word [ecx + 0x2e]
cmp word [esp + 0x20], ax
mov edx, dword [edi + 0x10]
mov dword [esp + 0x3c], edx
jae 0x436731
mov ecx, dword [ecx + 0x1c]
xor edx, edx
cmp byte [esi + ecx], dl
sete dl
cmp ebx, edx
je 0x43673c
test ebx, ebx
je 0x43675b
cmp ax, word [esp + 0x20]
jne 0x43675b
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov al, byte [esp + 0x7c]
mov dword [esp + 0x40], ebx
mov byte [esp + 0x7c], 0
mov byte [esp + 0x17], al
jmp 0x43675f
mov ebx, dword [esp + 0x40]
xor ecx, ecx
cmp ebx, ecx
mov al, 0x28
je 0x436770
test byte [ebx + 0x12], al
mov dword [esp + 0x64], ecx
je 0x436778
mov dword [esp + 0x64], 1
mov edx, dword [esp + 0x30]
cmp edx, ecx
je 0x436789
test byte [edx + 0x12], al
mov dword [esp + 0x6c], ecx
je 0x436791
mov dword [esp + 0x6c], 1
cmp ebx, ecx
jne 0x4367a0
cmp word [esp + 0x20], cx
mov dword [esp + 0x60], ecx
jbe 0x4367a8
mov dword [esp + 0x60], 1
cmp ebx, ecx
mov dword [esp + 0x20], esi
je 0x43684e
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x38]
lea ecx, [esi + edx]
push ecx
push eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x74], ecx
call fcn.00430f20
add esp, 0xc
test word [ebx + 0x14], 0x100
je 0x4367ea
push edi
mov ecx, ebp
call fcn.004072d0
add esp, 4
mov eax, dword [esp + 0x5c]
call fcn.00403580
test eax, eax
je 0x436811
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
push ecx
push edx
push 0x4c
mov esi, ebp
call fcn.004175e0
mov esi, dword [esp + 0x40]
add esp, 0xc
cmp dword [esp + 0x28], 0
je 0x436847
mov eax, dword [esp + 0x28]
mov bl, byte [esi + eax]
mov eax, dword [esp + 0x5c]
call fcn.00407db0
cmp al, 0x41
mov ebx, dword [esp + 0x28]
jne 0x436833
mov byte [esi + ebx], al
mov dl, byte [esi + ebx]
mov ecx, dword [esp + 0x5c]
call fcn.004034c0
test eax, eax
je 0x436847
mov byte [esi + ebx], 0x41
add dword [esp + 0x20], 1
jmp 0x436887
cmp byte [esp + 0x7c], 0
je 0x436887
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add ecx, edx
push ecx
push 0
push 0x1a
mov esi, ebp
call fcn.004175e0
mov esi, dword [esp + 0x40]
mov eax, 1
add esp, 0xc
add dword [esp + 0x20], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], eax
movzx eax, byte [esp + 0x7c]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x30]
call fcn.00419b20
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
push ebx
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x78]
push eax
lea eax, [edx + ecx*2]
mov ecx, dword [esp + 0x3c]
movzx edx, byte [ecx + eax*2 + 0x47333c]
push edx
mov eax, ebp
call fcn.00419500
add esp, 0x1c
cmp dword [esp + 0x30], 0
mov dword [esp + 0x20], esi
je 0x43699e
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x18]
lea ebx, [eax + ecx]
push ebx
mov eax, 1
mov dword [esp + 0x80], edx
mov dword [esp + 0x6c], ebx
call fcn.00407c80
mov edx, dword [esp + 0x80]
add esp, 4
push ebx
push edx
push esi
call fcn.00430f20
mov eax, dword [esp + 0x3c]
add esp, 0xc
test word [eax + 0x14], 0x100
je 0x436942
push edi
mov ecx, ebp
call fcn.004072d0
add esp, 4
mov eax, dword [esp + 0x7c]
call fcn.00403580
test eax, eax
je 0x436961
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
push 0x4c
mov esi, ebp
call fcn.004175e0
add esp, 0xc
mov esi, dword [esp + 0x7c]
mov bl, byte [esp + 0x16]
mov eax, esi
call fcn.00407db0
cmp al, 0x41
je 0x4369c6
mov dl, bl
mov ecx, esi
call fcn.004034c0
test eax, eax
jne 0x4369c6
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x1e]
mov ecx, 1
call fcn.00419b20
add esp, 8
jmp 0x4369c6
cmp byte [esp + 0x17], 0
je 0x4369cb
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
add ecx, edx
push ecx
push 0
push 0x1a
mov esi, ebp
call fcn.004175e0
add esp, 0xc
mov dword [esp + 0x6c], 0
add dword [esp + 0x20], 1
cmp dword [esp + 0x28], 0
je 0x4369ff
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4369f2
cmp dword [eax + 0x1d8], 0
je 0x4369f2
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x50]
call fcn.0040cda0
jmp 0x4369ff
mov eax, dword [esp + 0x28]
push eax
call fcn.0040a140
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
mov ecx, dword [ebp + 0x20]
mov dword [edi + 0x34], ecx
je 0x436a38
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x30]
push ecx
movzx ecx, byte [edx + eax*2 + 0x473344]
push ecx
mov eax, ebp
call fcn.00419500
add esp, 0x14
mov eax, dword [esp + 0x40]
call fcn.00402960
mov eax, dword [esp + 0x30]
call fcn.00402960
cmp dword [esp + 0x70], 0
jne 0x436b2c
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 0xc]
test byte [eax + 0x26], 0x20
jne 0x436a9d
mov edi, dword [esp + 0x18]
add dword [edi + 0x48], 1
mov ebx, dword [edi + 0x48]
mov eax, dword [esp + 0x4c]
push ebx
push eax
push 0x71
mov esi, ebp
call fcn.004175e0
mov esi, dword [esp + 0x28]
add esp, 0xc
push 0xffffffffffffffff
push esi
mov edx, edi
call fcn.00403390
push ebx
push esi
push 0x43
mov esi, ebp
call fcn.004175e0
jmp 0x436b25
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x4c]
je 0x436b2c
call fcn.00402f80
mov ecx, dword [esp + 0x18]
mov ebx, eax
movzx esi, word [ebx + 0x2e]
call fcn.00403010
xor edi, edi
cmp word [ebx + 0x2e], di
mov dword [esp + 0x7c], eax
jbe 0x436b08
jmp 0x436ad0
mov edx, dword [esp + 0x7c]
mov ecx, dword [ebx + 4]
mov si, word [ecx + edi*2]
lea eax, [edi + edx]
mov edx, dword [esp + 0x44]
push eax
call fcn.00402f50
movsx edx, ax
mov eax, dword [esp + 0x50]
push edx
push eax
push 0x2f
mov esi, ebp
call fcn.00416370
movzx ecx, word [ebx + 0x2e]
add edi, 1
add esp, 0x10
cmp edi, ecx
jl 0x436ad0
movzx edx, word [ebx + 0x2e]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push 0x45
mov eax, ebp
call fcn.00419500
mov edi, dword [esp + 0x40]
add esp, 0x14
mov eax, dword [esp + 0x48]
test dword [eax + 0x24], 0x1000
je 0x436b3f
mov byte [edi + 0x2d], 0x9f
jmp 0x436b4d
cmp dword [esp + 0x24], 0
sete cl
add cl, 7
mov byte [edi + 0x2d], cl
mov edx, dword [esp + 0x4c]
mov dword [edi + 0x30], edx
mov cl, byte [eax + 0x26]
and cl, 1
mov byte [edi + 0x2e], cl
test byte [eax + 0x24], 0xf
jne 0x436baa
mov byte [edi + 0x2f], 1
jmp 0x436baa
test dl, 8
je 0x436b74
mov byte [edi + 0x2d], 0x9f
jmp 0x436baa
mov eax, dword [esp + 0x24]
mov dl, byte [eax + 0x473348]
mov ecx, dword [esp + 0x1c]
mov byte [edi + 0x2d], dl
mov edx, dword [esp + 0x7c]
mov dword [edi + 0x30], ecx
movzx eax, byte [eax + 0x47334c]
push edx
push ecx
push eax
mov esi, ebp
call fcn.004175e0
add esp, 0xc
add eax, 1
mov byte [edi + 0x2f], 1
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0xc]
test ecx, ecx
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x7c], ecx
jle 0x436cb1
mov edi, dword [esp + 0x2c]
movzx edx, word [ebx + 0x14]
xor esi, esi
test dl, 6
jne 0x436c97
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x2c]
and eax, dword [edi + 0x48]
and ecx, dword [edi + 0x4c]
or eax, ecx
je 0x436bf0
mov ecx, dword [esp + 0x78]
mov byte [ecx + 0x27], 1
jmp 0x436c97
cmp dword [edi], 0
mov eax, dword [ebx]
mov dword [esp + 0x70], eax
je 0x436c05
test byte [eax + 4], 1
je 0x436c97
test edx, 0x200
je 0x436c54
mov esi, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x54], esi
mov edi, dword [edi + 0x24]
jg 0x436c2f
push ebp
call fcn.00414c20
add esp, 4
test eax, eax
je 0x436c2f
mov esi, 1
jmp 0x436c54
mov ecx, dword [ebp + 4]
add dword [ebp + 0x20], 1
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x2e
mov byte [eax + 3], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
push 0x10
push edx
push eax
push ecx
call fcn.0042da20
add esp, 0x10
test esi, esi
je 0x436c8e
mov eax, dword [ebp + 0x20]
cmp eax, esi
jbe 0x436c82
mov ecx, dword [ebp + 4]
lea edx, [esi + esi*4]
mov dword [ecx + edx*4 + 8], eax
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
sub edx, 1
mov dword [eax + 0x58], edx
or word [ebx + 0x14], 4
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
sub eax, 1
add ebx, 0x30
test eax, eax
mov dword [esp + 0x7c], eax
jg 0x436bc4
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], eax
jle 0x436e32
jmp 0x436cd0
test byte [ecx + 0x14], 6
mov eax, dword [esp + 0x1c]
jne 0x436e14
movzx edx, word [ecx + 0x12]
test dl, 0x82
je 0x436e14
test edx, 0x800
je 0x436e14
cmp dword [ecx + 8], eax
jne 0x436e14
mov edx, dword [esp + 0x2c]
cmp dword [edx], 0
jne 0x436e14
mov edx, dword [ecx]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x84]
push 0
push 0x83
push edx
mov edx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x64]
call fcn.0042d910
mov esi, eax
add esp, 0x10
test esi, esi
je 0x436e14
test byte [esi + 0x14], 4
jne 0x436e14
mov eax, dword [esp + 0x50]
test eax, eax
je 0x436d5f
cmp byte [eax + 0x41], 0
jne 0x436e14
cmp dword [0x47a008], 0
je 0x436db4
mov eax, dword [0x47c4a8]
test eax, eax
je 0x436d7b
push eax
call dword [0x47a05c]
add esp, 4
lea ebx, [esp + 0x78]
mov eax, 0x30
call fcn.0040cdc0
mov eax, dword [0x47c4a8]
test eax, eax
je 0x436d9c
push eax
call dword [0x47a064]
add esp, 4
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x436dc7
cmp dword [esp + 0x50], ebx
je 0x436e14
mov eax, dword [esp + 0x50]
mov byte [eax + 0x41], 1
jmp 0x436e14
push 0x30
call dword [0x47a02c]
mov ebx, eax
add esp, 4
mov dword [esp + 0x78], ebx
jmp 0x436da0
mov esi, dword [esi]
mov eax, dword [esp + 0x58]
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
push 0x10
push eax
push ebx
push ecx
mov dword [ebx + 0xc], edx
call fcn.0042da20
mov esi, dword [esp + 0x60]
add esp, 0x10
test esi, esi
je 0x436e0b
cmp dword [esi + 0x1d8], 0
je 0x436e0b
mov eax, ebx
call fcn.0040cda0
jmp 0x436e14
push ebx
call fcn.0040a140
add esp, 4
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x70]
sub eax, 1
add ecx, 0x30
test eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x70], ecx
jg 0x436cd0
mov edi, dword [esp + 0x2c]
cmp dword [edi], 0
je 0x436edd
mov edx, dword [ebp + 0x20]
mov ebx, dword [edi]
mov dword [edi + 0x1c], edx
mov esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x54], esi
jg 0x436e5f
push ebp
call fcn.00414c20
add esp, 4
test eax, eax
jne 0x436e88
mov eax, dword [ebp + 4]
mov ecx, 1
add dword [ebp + 0x20], ecx
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x17
mov byte [eax + 3], 0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov edx, dword [esp + 0x18]
call fcn.00407be0
mov ebp, dword [esp + 0x54]
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jle 0x436edd
nop
test byte [esi + 0x14], 6
jne 0x436ed2
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and eax, dword [edi + 0x48]
and ecx, dword [edi + 0x4c]
or eax, ecx
jne 0x436ed2
mov ecx, dword [esp + 0x58]
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
push 0x10
push ecx
push edx
push eax
call fcn.0042da20
add esp, 0x10
or word [esi + 0x14], 4
add ebx, 1
add esi, 0x30
cmp ebx, dword [ebp + 0xc]
jl 0x436ea0
mov eax, dword [edi + 0x48]
mov edx, dword [edi + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret