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

Disassembly:
sub esp, 0x14c
mov eax, dword [esp + 0x158]
mov ecx, dword [esp + 0x154]
mov dword [esp + 0x78], ecx
mov dx, word [esp + 0x150]
mov word [esp + 0x7e], dx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
cmp dword [esp + 0x8c], 8
jae 0x4028c3
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00452fd0
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
jmp 0x4028dd
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x74], ecx
xor eax, eax
cmp eax, ecx
jb 0x4029a3
jmp 0x4029b6
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.00453600
mov dword [esp + 0x98], eax
mov edx, dword [esp + 0x98]
mov eax, 1
xor ecx, ecx
cmp edx, 0
cmove eax, ecx
cmp eax, 0
jne 0x402919
mov dword [esp + 0x80], 0
jmp 0x402937
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x70], eax
mov dword [esp + 0xa4], eax
cmp word [eax], cx
je 0x40294c
jmp 0x4028dd
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
add esp, 0x14c
ret
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xf4], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x6c], edx
cmp eax, ecx
jb 0x402996
mov eax, dword [esp + 0x6c]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax], cx
je 0x4029e7
jmp 0x4029d1
mov ecx, dword [esp + 0x74]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 0
call fcn.0045593a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x68], ecx
mov eax, 1
cmp eax, ecx
jb 0x402a01
jmp 0x402a15
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x64], ecx
xor eax, eax
cmp eax, ecx
jb 0x403053
jmp 0x403088
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax + 2], cx
je 0x402a46
jmp 0x402a30
mov ecx, dword [esp + 0x68]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 1
call fcn.0045593a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x60], ecx
mov eax, 2
cmp eax, ecx
jb 0x402a63
jmp 0x402a77
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x5c], ecx
mov eax, 1
cmp eax, ecx
jb 0x402fd6
jmp 0x40300e
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax + 4], cx
je 0x402aa8
jmp 0x402a92
mov ecx, dword [esp + 0x60]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 2
call fcn.0045593a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x58], ecx
mov eax, 3
cmp eax, ecx
jb 0x402ac5
jmp 0x402ad9
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x54], ecx
mov eax, 2
cmp eax, ecx
jb 0x402f59
jmp 0x402f91
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax + 6], cx
je 0x402b0a
jmp 0x402af4
mov ecx, dword [esp + 0x58]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 3
call fcn.0045593a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x50], ecx
mov eax, 4
cmp eax, ecx
jb 0x402b27
jmp 0x402b3b
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x4c], ecx
mov eax, 3
cmp eax, ecx
jb 0x402edc
jmp 0x402f14
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax + 8], cx
je 0x402b6c
jmp 0x402b56
mov ecx, dword [esp + 0x50]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 4
call fcn.0045593a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x48], ecx
mov eax, 5
cmp eax, ecx
jb 0x402b89
jmp 0x402b9d
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x44], ecx
mov eax, 4
cmp eax, ecx
jb 0x402e5f
jmp 0x402e97
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax + 0xa], cx
je 0x402bce
jmp 0x402bb8
mov ecx, dword [esp + 0x48]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 5
call fcn.0045593a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x40], ecx
mov eax, 6
cmp eax, ecx
jb 0x402beb
jmp 0x402bff
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x3c], ecx
mov eax, 5
cmp eax, ecx
jb 0x402de2
jmp 0x402e1a
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax + 0xc], cx
je 0x402c30
jmp 0x402c1a
mov ecx, dword [esp + 0x40]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 6
call fcn.0045593a
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x38], ecx
mov eax, 7
cmp eax, ecx
jb 0x402c4d
jmp 0x402c61
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x34], ecx
mov eax, 6
cmp eax, ecx
jb 0x402d65
jmp 0x402d9d
mov cx, word [esp + 0x7e]
mov eax, dword [esp + 0x88]
cmp word [eax + 0xe], cx
je 0x402cd4
jmp 0x402c7c
mov ecx, dword [esp + 0x38]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 7
call fcn.0045593a
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x140], edx
mov dword [esp + 0x144], ecx
mov dword [esp + 0x148], 8
lea eax, [0x47b6ac]
mov dword [esp], 8
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.004611e0
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
jmp 0x40288f
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x30], ecx
mov eax, 7
cmp eax, ecx
jae 0x402d20
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
add eax, 0xe
mov dword [esp + 0xe4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xfc], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x2c], edx
cmp eax, ecx
jb 0x402d58
jmp 0x402d3b
mov ecx, dword [esp + 0x30]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 7
call fcn.0045593a
mov eax, dword [esp + 0x2c]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
add eax, 0xc
mov dword [esp + 0xdc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0xd8], ecx
mov dword [esp + 0x104], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
jb 0x402dd5
jmp 0x402db8
mov ecx, dword [esp + 0x34]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 6
call fcn.0045593a
mov eax, dword [esp + 0x28]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
add eax, 0xa
mov dword [esp + 0xd4], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0x10c], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x24], edx
cmp eax, ecx
jb 0x402e52
jmp 0x402e35
mov ecx, dword [esp + 0x3c]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 5
call fcn.0045593a
mov eax, dword [esp + 0x24]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
add eax, 8
mov dword [esp + 0xcc], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x114], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x20], edx
cmp eax, ecx
jb 0x402ecf
jmp 0x402eb2
mov ecx, dword [esp + 0x44]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 4
call fcn.0045593a
mov eax, dword [esp + 0x20]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
add eax, 6
mov dword [esp + 0xc4], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0xc0], ecx
mov dword [esp + 0x11c], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x1c], edx
cmp eax, ecx
jb 0x402f4c
jmp 0x402f2f
mov ecx, dword [esp + 0x4c]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 3
call fcn.0045593a
mov eax, dword [esp + 0x1c]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
add eax, 4
mov dword [esp + 0xbc], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x124], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x18], edx
cmp eax, ecx
jb 0x402fc9
jmp 0x402fac
mov ecx, dword [esp + 0x54]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 2
call fcn.0045593a
mov eax, dword [esp + 0x18]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
add eax, 2
mov dword [esp + 0xb4], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x12c], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x14], edx
cmp eax, ecx
jb 0x403046
jmp 0x403029
mov ecx, dword [esp + 0x5c]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 1
call fcn.0045593a
mov eax, dword [esp + 0x14]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x88]
mov dword [esp + 0xac], eax
mov dword [esp + 0x130], eax
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x134], ecx
mov edx, eax
sub edx, ecx
mov dword [esp + 0x10], edx
cmp eax, ecx
jb 0x4030c0
jmp 0x4030a3
mov ecx, dword [esp + 0x64]
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x47b69c
mov dword [eax], 0
call fcn.0045593a
mov eax, dword [esp + 0x10]
shr eax, 1
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], 1
jmp 0x402937
mov eax, esp
mov dword [eax], str.C:UsersTomashu.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_std_src_syspalwindowsmod.rs
call fcn.00456ad0
int3