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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413e67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov eax, dword [0x419168]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xe0]
mov dword [esp + 0x184], eax
mov dword [esp + 0xc], esi
call fcn.00402aab
mov ecx, dword [esi + 4]
lea eax, [esp + 0xe0]
xor ebx, ebx
push eax
mov dword [esp + 0x198], ebx
call fcn.00406470
test al, al
je 0x4098ad
jmp 0x4093e0
mov eax, dword [esp + 0xe0]
cmp eax, 1
jne 0x409855
mov eax, str.String
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4093f8
mov esi, dword [esp + 0x114]
sub eax, edx
cmp esi, esi
mov edi, eax
mov dword [esp + 0x20], edi
mov edx, esi
jae 0x409414
cmp edx, ebx
je 0x40945b
cmp edx, edi
mov ecx, edx
jb 0x409420
mov ecx, edi
cmp dword [esp + 0x118], 0x10
mov esi, dword [esp + 0x104]
jae 0x409438
lea esi, [esp + 0x104]
mov edi, str.String
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x409448
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
mov esi, dword [esp + 0x114]
jne 0x409634
mov edi, dword [esp + 0x20]
cmp edx, edi
jb 0x409634
xor eax, eax
cmp edx, edi
setne al
cmp eax, ebx
jne 0x409634
mov esi, 0xf
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x198], 1
call fcn.00408e40
test al, al
je 0x4098cb
mov eax, 0x415748
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4094c0
sub eax, edi
push eax
push 0x415748
lea ecx, [esp + 0x4c]
call fcn.0040180a
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x13c]
mov byte [esp + 0x198], 2
call fcn.00406390
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.0040177b
mov eax, dword [esp + 0x5c]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x194], 4
jb 0x409538
mov eax, dword [esp + 0x48]
push eax
call fcn.0040ac2d
add esp, 4
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x154]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00405bb0
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
add ecx, 0x28
mov byte [esp + 0x19c], 5
call fcn.00406230
cmp dword [esp + 0x180], edi
jb 0x409590
mov ecx, dword [esp + 0x16c]
push ecx
call fcn.0040ac2d
add esp, 4
cmp dword [esp + 0x164], edi
mov dword [esp + 0x180], esi
mov dword [esp + 0x17c], ebx
mov byte [esp + 0x16c], bl
jb 0x4095be
mov edx, dword [esp + 0x150]
push edx
call fcn.0040ac2d
add esp, 4
cmp dword [esp + 0xdc], edi
mov dword [esp + 0x164], esi
mov dword [esp + 0x160], ebx
mov byte [esp + 0x150], bl
jb 0x4095ec
mov eax, dword [esp + 0xc8]
push eax
call fcn.0040ac2d
add esp, 4
cmp dword [esp + 0x94], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
jb 0x40961a
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0040ac2d
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jmp 0x409867
mov eax, str.StringArray
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409640
sub eax, edx
push eax
push str.StringArray
push esi
push ebx
lea ecx, [esp + 0x110]
call fcn.00401143
test eax, eax
jne 0x409907
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x198], 6
call fcn.00409010
test al, al
je 0x4098fc
mov edi, 0xf
mov eax, 0x415748
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4096a8
sub eax, esi
push eax
push 0x415748
lea ecx, [esp + 0x30]
call fcn.0040180a
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x13c]
mov byte [esp + 0x198], 7
call fcn.00406390
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.0040177b
mov eax, dword [esp + 0x40]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x194], 9
jb 0x40971a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040ac2d
add esp, 4
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov dword [esp + 0xbc], edi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
call fcn.0040177b
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x198], 0xa
call fcn.004083e0
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
add ecx, 0x34
mov byte [esp + 0x19c], 0xb
call fcn.00408ce0
mov eax, dword [esp + 0xb8]
cmp eax, ebx
je 0x4097bf
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xc0]
lea edx, [esp + 0xb8]
push edx
push ecx
push eax
call fcn.00407dd0
mov edx, dword [esp + 0xc8]
push edx
call fcn.0040ac2d
add esp, 0x14
cmp dword [esp + 0xb0], esi
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
jb 0x4097ed
mov eax, dword [esp + 0x9c]
push eax
call fcn.0040ac2d
add esp, 4
cmp dword [esp + 0x78], esi
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
jb 0x409815
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040ac2d
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
je 0x409847
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call fcn.00407dd0
push esi
call fcn.0040ac2d
add esp, 0x14
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jmp 0x409867
cmp eax, 3
je 0x409991
cmp eax, 2
je 0x409a22
lea ecx, [esp + 0xe0]
mov dword [esp + 0x194], 0xffffffff
call fcn.00402af9
lea ecx, [esp + 0xe0]
call fcn.00402aab
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
lea edx, [esp + 0xe0]
push edx
mov dword [esp + 0x198], ebx
call fcn.00406470
test al, al
jne 0x4093e0
lea ecx, [esp + 0xe0]
mov dword [esp + 0x194], 0xffffffff
call fcn.00402af9
xor al, al
jmp 0x409a3b
cmp dword [esp + 0x94], 0x10
jb 0x4098e5
mov eax, dword [esp + 0x80]
push eax
call fcn.0040ac2d
add esp, 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
jmp 0x4098ad
lea ecx, [esp + 0x10]
call fcn.00408490
jmp 0x4098ad
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0x2c]
push str.Invalid_Section_
push edx
call fcn.00401fb6
push 0x415228
push eax
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x1ac], 0xc
call fcn.00401f6a
add esp, 0x18
mov ecx, dword [esp + 0xc]
push eax
mov byte [esp + 0x198], 0xd
call fcn.00407ff0
mov eax, dword [esp + 0x78]
mov esi, 0x10
cmp eax, esi
jb 0x409965
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040ac2d
add esp, 4
cmp dword [esp + 0x40], esi
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
jb 0x4098ad
mov edx, dword [esp + 0x2c]
push edx
call fcn.0040ac2d
add esp, 4
jmp 0x4098ad
lea eax, [esp + 0x100]
push eax
lea ecx, [esp + 0x48]
push str.Element_Not_Expected_
push ecx
call fcn.00401fb6
push 0x415228
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x1ac], 0xe
call fcn.00401f6a
add esp, 0x18
push eax
mov ecx, esi
mov byte [esp + 0x198], 0xf
call fcn.00407ff0
mov eax, dword [esp + 0x40]
mov esi, 0x10
cmp eax, esi
jb 0x4099ed
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040ac2d
add esp, 4
cmp dword [esp + 0x5c], esi
mov edi, 0xf
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
jb 0x409a11
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0040ac2d
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jmp 0x4098ad
lea ecx, [esp + 0xe0]
mov dword [esp + 0x194], 0xffffffff
call fcn.00402af9
mov al, 1
mov ecx, dword [esp + 0x18c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x184]
xor ecx, dword [ebp + 4]
call fcn.0040bdea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret