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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x74bbe6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x14], esi
call fcn.0040bb70
xor edi, edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34c], edi
call fcn.00412d40
lea ecx, [esp + 0x34]
mov byte [esp + 0x34c], 1
call fcn.00412d40
lea ecx, [esp + 0x48]
mov byte [esp + 0x34c], 2
call fcn.00412d40
mov ebx, dword [ebp + 8]
cmp ebx, edi
mov byte [esp + 0x34c], 3
je 0x5e2c77
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00401cc0
add esp, 8
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x350], 4
call fcn.004133c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 3
call fcn.00412de0
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x5e2eae
mov edx, dword [0x914298]
mov ecx, eax
shl ecx, 6
sub ecx, eax
add ecx, ecx
sub ecx, eax
mov eax, dword [edx + ecx*4 + 0xee80]
lea esi, [edx + ecx*4 + 0xedb4]
mov ecx, dword [0x894420]
push edi
push edi
push eax
call fcn.00414e70
push eax
lea ecx, [esp + 0x40]
call fcn.00413310
mov eax, dword [esi + 0xc4]
mov ecx, dword [0x894420]
push edi
push edi
push eax
call fcn.00414e70
push eax
lea ecx, [esp + 0x38]
call fcn.00413310
lea ecx, [esp + 0x50]
call fcn.004179a0
mov eax, dword [esi + 0xcc]
push edi
push edi
push 1
push eax
push 0x7dc49c
lea ecx, [esp + 0x64]
mov byte [esp + 0x360], 5
call fcn.00415a70
mov eax, dword [esi]
add eax, 0xfffffffe
cmp eax, 5
ja case.0x5e2d10.6
jmp dword [eax*4 + 0x5e397c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push esi
call fcn.005e0e60
jmp case.0x5e2d10.6
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.005e1de0
jmp case.0x5e2d10.6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
push edx
push esi
call fcn.005e1430
jmp case.0x5e2d10.6
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push esi
call fcn.005e1540
jmp case.0x5e2d10.6
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x18]
push esi
call fcn.005e0fe0
movzx eax, byte [esi + 0xd8]
xor edx, edx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], edx
lea ecx, [eax + eax*4]
add ecx, ecx
mov dword [esp + 0xd0], edx
add ecx, ecx
mov dword [esp + 0xd4], edx
sub ecx, eax
mov dword [esp + 0xd8], edx
mov edx, dword [0x914298]
shl ecx, 4
lea eax, [ecx + edx + 0x38]
push eax
lea ecx, [esp + 0x84]
mov word [esp + 0xe0], di
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe8], edi
call fcn.005e16d0
push edi
push edi
push edi
lea ecx, [esp + 0x8c]
call fcn.005cbcb0
push eax
push str.UNIT
lea ecx, [esp + 0x64]
call fcn.00415a70
mov ecx, dword [esi]
mov edx, dword [ecx*4 + 0x863b28]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x80]
call fcn.00413870
push str._titlefmt
push eax
lea eax, [esp + 0x20]
mov bl, 6
push eax
mov byte [esp + 0x358], bl
call fcn.00413ad0
add esp, 0xc
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [0x894420]
push edi
push edi
push eax
push str.online_help
mov byte [esp + 0x364], 7
call fcn.00414c00
push eax
lea edx, [esp + 0x284]
push edx
call fcn.00415f60
add esp, 0x10
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], bl
call fcn.00412de0
lea ecx, [esp + 0x78]
mov byte [esp + 0x34c], 5
call fcn.00412de0
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x40]
call fcn.00413310
lea ecx, [esp + 0x50]
mov byte [esp + 0x34c], 3
call fcn.004179c0
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x5e2f0e
xor esi, esi
cmp dword [esi*4 + 0x863b28], edi
je 0x5e2efd
lea ecx, [esp + 0x278]
push str.list
push ecx
call fcn.0071e658
mov eax, dword [esi*4 + 0x863b28]
push eax
lea edx, [esp + 0x284]
push edx
call fcn.0071e62e
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x28c]
push ecx
call fcn.00734cec
add esp, 0x18
test eax, eax
je 0x5e2f07
add esi, 1
cmp esi, 8
jb 0x5e2eb4
jmp 0x5e2f0e
mov edx, dword [esp + 0x14]
mov dword [edx + 0x30], esi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x30]
cmp eax, 0xffffffff
je 0x5e3218
cmp dword [eax*4 + 0x863b28], edi
je 0x5e3258
xor edi, edi
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CBSList_class_COHFile__.0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
mov ecx, dword [0x914298]
cmp dword [ecx + 0x8bdb4], edi
mov byte [esp + 0x34c], 8
jbe 0x5e2fce
xor ebx, ebx
nop
mov edx, dword [ebx + ecx + 0xedb4]
mov eax, dword [esp + 0x14]
cmp edx, dword [eax + 0x30]
jne 0x5e2fb9
mov ecx, dword [0x9190f4]
push edi
call fcn.005e03d0
mov esi, eax
test esi, esi
je 0x5e2fb3
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [edx + 0x60]
mov dword [eax], esi
mov dword [eax + 4], 0
cmp dword [esp + 0x28], 0
jne 0x5e2fa3
mov dword [esp + 0x28], eax
jmp 0x5e2faa
mov ecx, dword [esp + 0x2c]
mov dword [ecx + 4], eax
add dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov ecx, dword [0x914298]
add edi, 1
add ebx, 0x1f4
cmp edi, dword [ecx + 0x8bdb4]
jb 0x5e2f60
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
mov dword [esp + 0x18], esi
je 0x5e301b
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push esi
push esi
mov esi, eax
shl esi, 8
sub esi, eax
add esi, esi
push esi
call dword [edx + 8]
mov edi, dword [esp + 0x30]
push 0
mov esi, eax
push 0x5e0c90
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], 0
call fcn.005ef170
mov ecx, dword [0x914298]
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x28]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x44], eax
je 0x5e31b4
jmp 0x5e3035
mov ecx, dword [0x914298]
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x44], edx
mov edx, eax
shl edx, 6
sub edx, eax
add edx, edx
sub edx, eax
mov al, byte [ecx + edx*4 + 0xee8c]
test al, al
lea edi, [ecx + edx*4 + 0xedb4]
je 0x5e307c
movzx eax, al
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
sub edx, eax
shl edx, 4
lea ecx, [edx + ecx + 0x38]
call fcn.005cbcb0
jmp 0x5e3092
mov eax, dword [edi + 0xcc]
mov ecx, dword [0x894420]
push 0
push 0
push eax
call fcn.00414e70
mov dword [esp + 0x78], eax
mov word [esp + 0x80], 0
mov eax, dword [edi + 0xac]
test eax, eax
je 0x5e30c3
cmp word [eax], 0
je 0x5e30c3
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0071e658
add esp, 8
jmp 0x5e30fc
mov al, byte [edi + 0xd8]
test al, al
je 0x5e30fc
mov edx, dword [0x914298]
movzx eax, al
lea ecx, [eax + eax*4]
add ecx, ecx
add ecx, ecx
sub ecx, eax
shl ecx, 4
lea eax, [ecx + edx + 0x38]
push eax
lea ecx, [esp + 0x84]
push str.Images_Units_Icons_battle_view_small_size__s.bmp
push ecx
call fcn.0071f52c
add esp, 0xc
cmp ebx, 1
mov word [esi], 0
jne 0x5e3114
push str._A:200_
push esi
call fcn.0071e658
add esp, 8
cmp word [esp + 0x80], 0
je 0x5e3146
push 0x7dc440
push esi
call fcn.0071e62e
lea edx, [esp + 0x88]
push edx
push esi
call fcn.0071e62e
push 0x7dc438
push esi
call fcn.0071e62e
add esp, 0x18
push str._L:ee_
push esi
call fcn.0071e62e
mov edi, dword [edi + 0x94]
push edi
push esi
call fcn.0071e62e
push 0x783800
push esi
call fcn.0071e62e
mov eax, dword [esp + 0x90]
push eax
push esi
call fcn.0071e62e
push 0x7dc41c
push esi
call fcn.0071e62e
add ebx, 1
add esp, 0x28
cmp ebx, 2
jne 0x5e319d
push 0x7a0bc4
push esi
call fcn.0071e62e
add esp, 8
xor ebx, ebx
push esi
call fcn.0071e696
add esp, 4
cmp dword [esp + 0x44], 0
lea esi, [esi + eax*2]
jne 0x5e302f
mov esi, dword [esp + 0x18]
test esi, esi
je 0x5e31d2
push esi
lea ecx, [esp + 0x38]
call fcn.00413310
mov ecx, dword [0x86fb70]
mov edx, dword [ecx]
push esi
call dword [edx + 0xc]
mov dword [esp + 0x20], vtable.CBSList_class_COHFile__.0
mov eax, dword [esp + 0x28]
test eax, eax
mov byte [esp + 0x34c], 9
je 0x5e320b
lea ebx, [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x24]
call dword [edx + 0x64]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x5e31f0
mov ebx, dword [ebp + 8]
mov byte [esp + 0x34c], 3
xor edi, edi
cmp ebx, edi
je 0x5e32f5
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00401d90
mov eax, dword [eax]
push str..txt
push eax
call fcn.00734cec
add esp, 0x10
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00412de0
cmp esi, edi
jne 0x5e3258
push ebx
lea ecx, [esp + 0x68]
call fcn.0040b660
test eax, eax
je 0x5e32b8
lea ecx, [esp + 0x48]
mov byte [esp + 0x34c], 2
call fcn.00412de0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34c], 1
call fcn.00412de0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34c], 0
call fcn.00412de0
lea ecx, [esp + 0x64]
mov dword [esp + 0x34c], 0xffffffff
call fcn.0040ba70
xor eax, eax
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.title
lea ecx, [esp + 0x68]
call fcn.0040b930
push eax
lea ecx, [esp + 0x40]
call fcn.00413310
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x5e32dd
cmp word [eax], di
jne 0x5e32f5
push str.body
lea ecx, [esp + 0x68]
call fcn.0040b930
push eax
lea ecx, [esp + 0x38]
call fcn.00413310
lea ecx, [esp + 0xc]
call fcn.00412d40
mov eax, dword [esp + 0x3c]
cmp eax, edi
mov byte [esp + 0x34c], 0xa
je 0x5e33f3
cmp word [eax], di
je 0x5e33f3
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x10]
call fcn.004133c0
push 1
push 0x7dc408
lea ecx, [esp + 0x14]
call fcn.00413610
mov esi, eax
cmp esi, 0xffffffff
je 0x5e33dd
mov ecx, dword [esp + 0xc]
mov ax, word [ecx + esi*2]
test ax, ax
mov edi, esi
je 0x5e3366
cmp ax, 0x3e
je 0x5e3366
mov ax, word [ecx + edi*2 + 2]
add edi, 1
test ax, ax
jne 0x5e3353
sub edi, esi
lea edx, [edi - 3]
lea eax, [ecx + esi*2 + 6]
push edx
push eax
lea ecx, [esp + 0x20]
call fcn.00413870
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
mov ecx, dword [0x894420]
mov byte [esp + 0x358], 0xb
call fcn.00414e70
add edi, 1
push edi
push esi
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00413550
push ebx
push esi
lea ecx, [esp + 0x14]
call fcn.004135a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 0xa
call fcn.00412de0
push 1
push 0x7dc408
lea ecx, [esp + 0x14]
call fcn.00413610
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e3344
mov edx, dword [esp + 0xc]
push edx
call fcn.0040fbd0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx + 0xc], eax
xor edi, edi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0xc], edi
jne 0x5e340c
push str.NO_TITLE
call fcn.0040fbd0
add esp, 4
mov dword [esi + 0x10], eax
cmp dword [esp + 0x68], edi
mov ebx, vtable.CBArray_class_CBStr_.0
je 0x5e3642
push str.images
lea ecx, [esp + 0x68]
call fcn.0040b930
test eax, eax
je 0x5e351e
push str.images
lea ecx, [esp + 0x68]
call fcn.0040b930
push eax
lea ecx, [esp + 0x10]
call fcn.00413310
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], edi
push edi
push 0x7a0bc4
lea ecx, [esp + 0x14]
mov byte [esp + 0x354], 0xc
call fcn.00413610
cmp eax, 0xffffffff
je 0x5e34a0
lea ecx, [ecx]
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.00413550
push edi
push 0x7a0bc4
lea ecx, [esp + 0x14]
call fcn.00413610
cmp eax, 0xffffffff
jne 0x5e3480
lea edx, [esp + 0x20]
push edx
push 0xa
lea ecx, [esp + 0x14]
call fcn.00413d40
xor esi, esi
cmp dword [esp + 0x30], edi
jbe 0x5e34ed
mov edi, dword [esp + 0x14]
add edi, 0x14
nop
mov eax, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x24]
call dword [eax + 0x14]
mov eax, dword [eax]
mov ebx, dword [edi]
push eax
call fcn.0040fbd0
add esp, 4
push eax
mov ecx, edi
call dword [ebx + 8]
add esi, 1
cmp esi, dword [esp + 0x30]
jb 0x5e34c0
mov ebx, vtable.CBArray_class_CBStr_.0
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x34c], 0xa
mov dword [esp + 0x20], ebx
je 0x5e351e
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00412de0
push ecx
push 8
push eax
call fcn.0071f0d2
push esi
call fcn.0040fa80
add esp, 4
xor esi, esi
cmp dword [esp + 0x68], esi
je 0x5e3642
push str.keywords
lea ecx, [esp + 0x68]
call fcn.0040b930
test eax, eax
je 0x5e3642
push str.keywords
lea ecx, [esp + 0x68]
call fcn.0040b930
push eax
lea ecx, [esp + 0x10]
call fcn.00413310
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esi
push esi
push 0x7a0bc4
lea ecx, [esp + 0x14]
mov byte [esp + 0x354], 0xd
call fcn.00413610
cmp eax, 0xffffffff
je 0x5e35b0
lea esp, [esp]
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.00413550
push esi
push 0x7a0bc4
lea ecx, [esp + 0x14]
call fcn.00413610
cmp eax, 0xffffffff
jne 0x5e3590
lea edx, [esp + 0x20]
push edx
push 0xa
lea ecx, [esp + 0x14]
call fcn.00413d40
xor edi, edi
cmp dword [esp + 0x30], edi
jbe 0x5e360d
mov ebx, dword [esp + 0x14]
lea esp, [esp]
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x24]
call dword [eax + 0x14]
mov eax, dword [eax]
mov ecx, dword [0x9190f4]
push 1
push eax
call fcn.005e2a30
mov edx, dword [eax + 8]
lea esi, [eax + 8]
push ebx
mov ecx, esi
call dword [edx + 0x50]
test eax, eax
jne 0x5e3604
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 8]
add edi, 1
cmp edi, dword [esp + 0x30]
jb 0x5e35d0
mov eax, dword [esp + 0x24]
test eax, eax
mov byte [esp + 0x34c], 0xa
mov dword [esp + 0x20], vtable.CBArray_class_CBStr_.0
je 0x5e3642
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00412de0
push ecx
push 8
push eax
call fcn.0071f0d2
push esi
call fcn.0040fa80
add esp, 4
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5e37f3
cmp word [eax], 0
je 0x5e37f3
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.004133c0
push 0
push 0x7a0bc4
lea ecx, [esp + 0x14]
call fcn.00413610
cmp eax, 0xffffffff
je 0x5e36a1
jmp 0x5e3680
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.00413550
push 0
push 0x7a0bc4
lea ecx, [esp + 0x14]
call fcn.00413610
cmp eax, 0xffffffff
jne 0x5e3680
push 0
push 0x7dc3d8
lea ecx, [esp + 0x14]
call fcn.00413610
cmp eax, 0xffffffff
je 0x5e36d7
push 1
push eax
lea ecx, [esp + 0x14]
call fcn.00413550
push 0
push 0x7dc3d8
lea ecx, [esp + 0x14]
call fcn.00413610
cmp eax, 0xffffffff
jne 0x5e36b6
push 1
push 0x7dc408
lea ecx, [esp + 0x14]
call fcn.00413610
mov esi, eax
cmp esi, 0xffffffff
je 0x5e378b
mov ecx, dword [esp + 0xc]
mov ax, word [ecx + esi*2]
test ax, ax
mov edi, esi
je 0x5e3714
cmp ax, 0x3e
je 0x5e3714
mov ax, word [ecx + edi*2 + 2]
add edi, 1
test ax, ax
jne 0x5e3701
sub edi, esi
lea eax, [edi - 3]
lea ecx, [ecx + esi*2 + 6]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00413870
mov edx, dword [esp + 0x18]
mov ecx, dword [0x894420]
push 0
push 0
push edx
mov byte [esp + 0x358], 0xe
call fcn.00414e70
add edi, 1
push edi
push esi
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00413550
push ebx
push esi
lea ecx, [esp + 0x14]
call fcn.004135a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 0xa
call fcn.00412de0
push 1
push 0x7dc408
lea ecx, [esp + 0x14]
call fcn.00413610
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e36f2
xor ebx, ebx
xor esi, esi
nop
lea ecx, [esp + 0x18]
call fcn.00412d40
push esi
lea eax, [esp + 0x1c]
push str.___d
push eax
mov byte [esp + 0x358], 0xf
call fcn.00413950
mov ecx, dword [esp + 0x24]
push esi
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.005e0bb0
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 0xa
call fcn.00412de0
add esi, 1
cmp esi, 0xa
jb 0x5e3790
mov eax, dword [esp + 0xc]
push eax
call fcn.0040fbd0
mov edi, dword [esp + 0x18]
add esp, 4
mov dword [edi + 0x10], eax
jmp 0x5e380b
push 0x7dc3bc
call fcn.0040fbd0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx + 0x10], eax
xor ebx, ebx
mov edi, ecx
cmp dword [edi + 4], ebx
jne 0x5e38f5
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00401cc0
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 0x10
call fcn.00413540
mov ecx, dword [esp + 0x18]
push 0x3b
push ecx
call fcn.0071e674
add esp, 8
cmp eax, ebx
je 0x5e3859
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
cmp eax, ebx
je 0x5e38d8
mov esi, vtable.CBArray_class_CBStr_.0
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], ebx
lea edx, [esp + 0x50]
push edx
push 0x3b
lea ecx, [esp + 0x20]
mov byte [esp + 0x354], 0x11
call fcn.00413d40
mov eax, dword [esp + 0x50]
push ebx
lea ecx, [esp + 0x54]
call dword [eax + 0x14]
mov eax, dword [eax]
push eax
call fcn.0040fbd0
mov dword [edi + 4], eax
mov eax, dword [esp + 0x58]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x34c], 0x10
mov dword [esp + 0x50], esi
je 0x5e38e4
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00412de0
push ecx
push 8
push eax
call fcn.0071f0d2
push esi
call fcn.0040fa80
jmp 0x5e38e1
push ecx
call fcn.0040fbd0
mov dword [edi + 4], eax
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x34c], 0xa
call fcn.00412de0
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x5e3908
push eax
call fcn.0040fbd0
add esp, 4
mov dword [edi + 8], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34c], 3
call fcn.00412de0
lea ecx, [esp + 0x48]
mov byte [esp + 0x34c], 2
call fcn.00412de0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34c], 1
call fcn.00412de0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34c], 0
call fcn.00412de0
lea ecx, [esp + 0x64]
mov dword [esp + 0x34c], 0xffffffff
call fcn.0040ba70
mov ecx, dword [esp + 0x344]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4