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

Disassembly:
sub esp, 0x348
mov eax, 0x40b7fc
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], eax
mov ecx, 0x40b7f4
mov eax, 0x40b7ec
mov dword [esp + 4], 0x40b7e4
mov dword [esp + 8], 0x40b7dc
mov dword [esp + 0xc], 0x40b7d4
mov dword [esp + 0x10], 0x40b7c8
mov dword [esp + 0x14], 0x40b7c0
mov dword [esp + 0x18], 0x40b7b8
mov dword [esp + 0x1c], 0x40b7b0
mov dword [esp + 0x20], 0x40b7a8
mov dword [esp + 0x24], 0x40b7a4
mov dword [esp + 0x28], 0x40b79c
mov dword [esp + 0x2c], 0x40b794
mov dword [esp + 0x30], 0x40b788
mov dword [esp + 0x34], 0x40b77c
mov dword [esp + 0x38], 0x40b770
mov dword [esp + 0x40], 0x40b768
mov dword [esp + 0x44], 0x40b760
mov dword [esp + 0x48], 0x40b758
mov dword [esp + 0x4c], 0x40b750
mov dword [esp + 0x50], 0x40b748
mov dword [esp + 0x54], 0x40b740
mov dword [esp + 0x58], 0x40b738
mov dword [esp + 0x5c], 0x40b730
mov dword [esp + 0x60], 0x40b728
mov dword [esp + 0x64], 0x40b724
mov dword [esp + 0x68], 0x40b720
mov dword [esp + 0x6c], 0x40b71c
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0x40b714
mov dword [esp + 0x7c], 0x40b70c
mov dword [esp + 0x80], 0x40b704
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], 0x40b6fc
mov dword [esp + 0x8c], 0x40b6f8
mov dword [esp + 0x90], 0x40b6f4
mov dword [esp + 0x94], 0x40b6ec
mov dword [esp + 0x98], 0x40b6e4
mov dword [esp + 0x9c], 0x40b6dc
mov dword [esp + 0xa0], 0x40b6d4
mov dword [esp + 0xa4], 0x40b6c8
mov dword [esp + 0xa8], 0x40b6c0
mov dword [esp + 0xac], 0x40b6b8
mov dword [esp + 0xb0], 0x40b6b0
mov dword [esp + 0xb4], 0x40b6a8
mov dword [esp + 0xb8], 0x40b6a4
mov dword [esp + 0xbc], 0x40b69c
mov dword [esp + 0xc0], 0x40b694
mov dword [esp + 0xc4], 0x40b68c
mov dword [esp + 0xc8], 0x40b684
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], 0x40b67c
mov dword [esp + 0xd4], 0x40b670
mov dword [esp + 0xd8], 0x40b668
mov dword [esp + 0xdc], 0x40b660
mov dword [esp + 0xe0], 0x40b658
mov dword [esp + 0xe4], 0x40b650
mov dword [esp + 0xe8], 0x40b644
mov dword [esp + 0xec], 0x40b63c
mov dword [esp + 0xf0], 0x40b634
mov dword [esp + 0xf4], 0x40b62c
mov dword [esp + 0xf8], 0x40b624
mov dword [esp + 0xfc], 0x40b61c
mov dword [esp + 0x100], 0x40b610
mov dword [esp + 0x104], 0x40b608
mov dword [esp + 0x108], 0x40b600
mov dword [esp + 0x10c], 0x40b5f8
mov dword [esp + 0x110], 0x40b5f0
mov dword [esp + 0x114], 0x40b5e8
mov dword [esp + 0x118], 0x40b5dc
mov dword [esp + 0x11c], 0x40b5d8
mov dword [esp + 0x120], 0x40b5d0
mov dword [esp + 0x124], 0x40b5c8
mov dword [esp + 0x128], 0x40b5c0
mov dword [esp + 0x12c], 0x40b5b4
mov dword [esp + 0x130], 0x40b5a8
mov dword [esp + 0x134], 0x40b5a0
mov dword [esp + 0x138], 0x40b598
mov dword [esp + 0x144], eax
mov eax, 0x40b590
mov dword [esp + 0x13c], 0x40b588
mov dword [esp + 0x140], 0x40b580
mov dword [esp + 0x148], 0x40b574
mov dword [esp + 0x14c], 0x40b568
mov dword [esp + 0x150], 0x40b560
mov dword [esp + 0x154], 0x40b558
mov dword [esp + 0x158], 0x40b550
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], 0x40b548
mov dword [esp + 0x164], 0x40b540
mov dword [esp + 0x168], 0x40b538
mov dword [esp + 0x16c], 0x40b530
mov dword [esp + 0x170], 0x40b528
mov dword [esp + 0x174], 0x40b520
mov dword [esp + 0x178], 0x40b518
mov dword [esp + 0x17c], 0x40b510
mov dword [esp + 0x180], 0x40b50c
mov dword [esp + 0x184], 0x40b504
mov dword [esp + 0x188], 0x40b4fc
mov dword [esp + 0x18c], 0x40b4f4
mov dword [esp + 0x190], 0x40b4ec
mov dword [esp + 0x194], 0x40b4e4
mov dword [esp + 0x198], 0x40b4dc
mov dword [esp + 0x19c], 0x40b4d4
mov dword [esp + 0x1a0], 0x40b4cc
mov dword [esp + 0x1a4], 0x40b4c4
mov dword [esp + 0x1a8], 0x40b4bc
mov dword [esp + 0x1ac], 0x40b4b4
mov dword [esp + 0x1b0], 0x40b4ac
mov dword [esp + 0x1b4], 0x40b4a4
mov dword [esp + 0x1b8], 0x40b49c
mov dword [esp + 0x1bc], 0x40b494
mov dword [esp + 0x1c0], 0x40b48c
mov dword [esp + 0x1c4], eax
mov dword [esp + 0x1c8], 0x40b484
mov dword [esp + 0x1cc], 0x40b478
mov dword [esp + 0x1d0], 0x40b470
mov dword [esp + 0x1d4], 0x40b468
mov dword [esp + 0x1d8], 0x40b460
mov dword [esp + 0x1dc], 0x40b458
mov dword [esp + 0x1e0], 0x40b450
mov dword [esp + 0x1e4], 0x40b448
mov dword [esp + 0x1e8], 0x40b440
mov dword [esp + 0x1ec], 0x40b438
mov dword [esp + 0x1f0], 0x40b430
mov dword [esp + 0x1f4], 0x40b428
mov dword [esp + 0x1f8], 0x40b420
mov dword [esp + 0x1fc], 0x40b418
mov dword [esp + 0x200], 0x40b410
mov dword [esp + 0x204], 0x40b408
mov dword [esp + 0x208], 0x40b400
mov dword [esp + 0x20c], 0x40b3f8
mov dword [esp + 0x210], 0x40b3f4
mov dword [esp + 0x214], 0x40b3ec
mov dword [esp + 0x218], 0x40b3e8
mov dword [esp + 0x21c], 0x40b3e0
mov dword [esp + 0x220], 0x40b3dc
mov dword [esp + 0x224], 0x40b3d4
mov dword [esp + 0x228], 0x40b3cc
mov dword [esp + 0x22c], 0x40b3c4
mov dword [esp + 0x230], 0x40b3bc
mov dword [esp + 0x234], 0x40b3b4
mov dword [esp + 0x238], 0x40b3ac
mov dword [esp + 0x23c], 0x40b3a4
mov dword [esp + 0x240], 0x40b39c
mov dword [esp + 0x244], 0x40b394
mov dword [esp + 0x248], 0x40b38c
mov dword [esp + 0x24c], 0x40b384
mov dword [esp + 0x250], 0x40b378
mov dword [esp + 0x254], 0x40b36c
mov dword [esp + 0x258], 0x40b364
mov dword [esp + 0x25c], 0x40b35c
mov dword [esp + 0x260], 0x40b354
mov dword [esp + 0x264], 0x40b34c
mov dword [esp + 0x268], 0x40b344
mov dword [esp + 0x26c], 0x40b33c
mov dword [esp + 0x270], 0x40b334
mov dword [esp + 0x274], 0x40b328
mov dword [esp + 0x278], 0x40b320
push ebx
push ebp
xor eax, eax
push esi
mov dword [esp + 0x288], 0x40b318
mov dword [esp + 0x28c], 0x40b310
mov dword [esp + 0x290], 0x40b308
mov dword [esp + 0x294], 0x40b300
mov dword [esp + 0x298], 0x40b2f8
mov dword [esp + 0x29c], 0x40b2ec
mov dword [esp + 0x2a0], 0x40b2e4
mov dword [esp + 0x2a4], 0x40b2dc
mov dword [esp + 0x2a8], 0x40b2d4
mov dword [esp + 0x2ac], 0x40b2cc
mov dword [esp + 0x2b0], 0x40b2c4
mov dword [esp + 0x2b4], 0x40b2c0
mov dword [esp + 0x2b8], 0x40b2bc
mov dword [esp + 0x2bc], 0x40b2b8
mov dword [esp + 0x2c0], 0x40b2b4
mov dword [esp + 0x2c4], 0x40b2b0
mov dword [esp + 0x2c8], 0x40b2ac
mov dword [esp + 0x2cc], 0x40b2a8
mov dword [esp + 0x2d0], 0x40b2a4
mov dword [esp + 0x2d4], 0x40b2a0
mov dword [esp + 0x2d8], 0x40b29c
mov dword [esp + 0x2dc], 0x40b294
mov dword [esp + 0x2e0], 0x40b28c
mov dword [esp + 0x2e4], 0x40b284
mov dword [esp + 0x2e8], 0x40b27c
mov dword [esp + 0x2ec], 0x40b274
mov dword [esp + 0x2f0], 0x40b26c
mov dword [esp + 0x2f4], 0x40b264
mov dword [esp + 0x2f8], 0x40b25c
mov dword [esp + 0x2fc], 0x40b254
mov dword [esp + 0x300], 0x40b24c
mov dword [esp + 0x304], 0x40b244
mov dword [esp + 0x308], 0x40b23c
mov dword [esp + 0x30c], 0x40b234
mov dword [esp + 0x310], 0x40b22c
mov dword [esp + 0x314], 0x40b224
mov dword [esp + 0x318], 0x40b21c
mov dword [esp + 0x31c], 0x40b214
mov dword [esp + 0x320], 0x40b20c
mov dword [esp + 0x324], 0x40b204
mov dword [esp + 0x328], 0x40b200
mov dword [esp + 0x32c], 0x40b1fc
mov dword [esp + 0x330], 0x40b1f8
mov dword [esp + 0x334], 0x40b1f4
mov dword [esp + 0x338], 0x40b1ec
mov dword [esp + 0x33c], 0x40b1e4
mov dword [esp + 0x340], 0x40b1dc
mov dword [esp + 0x344], 0x40b1d4
mov dword [esp + 0x348], 0x40b1cc
mov dword [esp + 0x34c], 0x40b1c4
mov dword [esp + 0x350], 0x40b1bc
mov dword [esp + 0xc], eax
push edi
mov edi, dword [esp + eax*4 + 0x14]
mov esi, dword [esp + 0x35c]
push edi
call fcn.004086d0
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x401e44
mov eax, esi
mov cl, byte [eax]
xor ebp, ebp
test cl, cl
je 0x401e44
push ebx
push edi
push esi
inc ebp
call fcn.0040853c
add esp, 0xc
test eax, eax
je 0x401e40
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x401e26
jmp 0x401e44
test ebp, ebp
jg 0x401e64
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xd1
mov dword [esp + 0x10], eax
jl 0x401e02
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x348
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x348
ret