Function at 0x4037e0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x451457
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov eax, dword [0x4789c0]
push ebx
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x108], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x108], 2
call fcn.0044e9c1
mov ecx, dword [eax + 4]
call fcn.004457ef
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x10c], 3
call fcn.0040fc00
mov eax, dword [0x4789c0]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x110]
lea edx, [esp + 0x18]
mov ebx, 5
mov ecx, dword [esi + 0x30]
mov byte [esp + 0x108], bl
push ecx
push edx
call fcn.004041d0
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x10c], 6
call fcn.0040fe20
lea ecx, [esp + 0x18]
mov byte [esp + 0x108], bl
call fcn.004410bd
mov ecx, dword [esp + 0x114]
mov eax, dword [esi + 0x34]
lea edx, [esp + 0x18]
push eax
lea edi, [ecx + 0x1134]
push edx
mov ecx, edi
call fcn.00411a30
push 3
push eax
mov byte [esp + 0x110], 7
call fcn.00404290
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x108], bl
call fcn.004410bd
mov eax, dword [esi + 0x34]
mov ecx, edi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00411a30
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x10c], 8
call fcn.0040fe50
lea ecx, [esp + 0x18]
mov byte [esp + 0x108], bl
call fcn.004410bd
mov eax, dword [esi + 0x2c]
cmp eax, 3
ja case.default.0x403913
jmp dword [eax*4 + 0x404184]
push 0
push 0
push 0
push 0
push 4
push 1
lea ecx, [esp + 0x40]
call fcn.0040ff90
test eax, eax
jne case.default.0x403913
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040fd00
mov edx, dword [eax]
lea eax, [esp + 0x10]
push edx
push 0x4752cc
push eax
mov byte [esp + 0x114], 9
call fcn.0043f1f7
add esp, 0xc
lea ecx, [esp + 0x70]
mov byte [esp + 0x108], bl
call fcn.004410bd
call fcn.0044e9c1
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 4]
push 0x30
push 0x4752b0
push ecx
jmp 0x4040ee
push 0
push 0
push 0
push 0
push 8
push 0
lea ecx, [esp + 0x40]
call fcn.0040ff90
test eax, eax
je case.default.0x403913
lea ecx, [esp + 0x94]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040fd00
mov eax, dword [eax]
lea ecx, [esp + 0xa4]
push eax
mov byte [esp + 0x10c], 0xa
call fcn.0040f200
lea ecx, [esp + 0x94]
mov byte [esp + 0x108], 0xc
call fcn.004410bd
push 1
push 1
push 1
push 1
push 0
lea ecx, [esp + 0xb8]
call fcn.0040f2a0
lea edx, [esp + 0x18]
lea ecx, [esp + 0xa4]
push edx
call fcn.0040fd00
mov eax, dword [eax]
xor ecx, ecx
mov edx, dword [eax - 8]
test edx, edx
sete cl
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.004410bd
test esi, esi
mov esi, dword [0x454584]
jne 0x403ae2
lea ecx, [esp + 0xa4]
call fcn.00410140
test eax, eax
jne 0x403aa6
lea edx, [esp + 0x9c]
lea ecx, [esp + 0xa4]
push edx
call fcn.0040fd00
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x475294
push ecx
mov byte [esp + 0x114], 0xd
call fcn.0043f1f7
add esp, 0xc
lea ecx, [esp + 0x9c]
mov byte [esp + 0x108], 0xc
call fcn.004410bd
call fcn.0044e9c1
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x10]
push 0x30
push 0x4752b0
push edx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov eax, dword [eax + 0x1c]
push eax
call esi
lea ecx, [esp + 0xa4]
call fcn.0040f6e0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xa8]
call fcn.0040fd00
mov edx, dword [eax]
xor eax, eax
mov ecx, dword [edx - 8]
test ecx, ecx
sete al
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004410bd
test edi, edi
je 0x403a30
lea ecx, [esp + 0xa4]
call fcn.0040f680
lea ecx, [esp + 0x28]
call fcn.00410140
test eax, eax
jne 0x403b5e
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040fd00
mov edx, dword [eax]
lea eax, [esp + 0x10]
push edx
push 0x475294
push eax
mov byte [esp + 0x114], 0xe
call fcn.0043f1f7
add esp, 0xc
lea ecx, [esp + 0x80]
mov byte [esp + 0x108], 0xc
call fcn.004410bd
call fcn.0044e9c1
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x10]
push 0x30
push 0x4752b0
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x74]
mov eax, dword [eax + 0x1c]
push eax
call esi
lea ecx, [esp + 0xa4]
mov byte [esp + 0x108], bl
call fcn.0040f6f0
jmp case.default.0x403913
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, edi
call fcn.00411a30
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x10c], 0xf
call fcn.0040fe80
lea ecx, [esp + 0x60]
mov byte [esp + 0x108], bl
call fcn.004410bd
push 0
lea ecx, [esp + 0x2c]
call fcn.00410580
test eax, eax
jne 0x403d0e
mov eax, dword [esi + 0x28]
sub eax, 0
je 0x403c90
dec eax
jne case.default.0x403913
mov eax, dword [esi + 0x3c]
lea edx, [esp + 0xa0]
push eax
push edx
mov ecx, edi
call fcn.00411a30
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x114], 0x11
call fcn.00410510
test eax, eax
lea ecx, [esp + 0xa0]
mov byte [esp + 0x108], bl
sete byte [esp + 0x23]
call fcn.004410bd
mov al, byte [esp + 0x23]
test al, al
je case.default.0x403913
mov esi, dword [esi + 0x3c]
lea eax, [esp + 0x88]
push esi
push eax
mov ecx, edi
call fcn.00411a30
mov esi, eax
lea ecx, [esp + 0x68]
mov byte [esp + 0x108], 0x12
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040fd00
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x475274
push ecx
mov byte [esp + 0x118], 0x13
call fcn.0043f1f7
add esp, 0x10
lea ecx, [esp + 0x68]
mov byte [esp + 0x108], 0x12
call fcn.004410bd
mov byte [esp + 0x108], bl
lea ecx, [esp + 0x88]
jmp 0x4040d5
mov esi, dword [esi + 0x3c]
lea ecx, [esp + 0x54]
push esi
push ecx
mov ecx, edi
call fcn.00411a30
mov eax, dword [eax]
push eax
call fcn.0042f720
add esp, 4
lea ecx, [esp + 0x54]
mov esi, eax
call fcn.004410bd
push 1
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.00410550
test eax, eax
jne case.default.0x403913
lea edx, [esp + 0x98]
lea ecx, [esp + 0x28]
push edx
call fcn.0040fd00
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0x18]
push 0x475254
push ecx
mov byte [esp + 0x118], 0x10
call fcn.0043f1f7
add esp, 0x10
mov byte [esp + 0x108], bl
lea ecx, [esp + 0x98]
jmp 0x4040d5
dec eax
je 0x403ddd
sub eax, 3
jne case.default.0x403913
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x78]
push eax
push ecx
mov ecx, edi
call fcn.00411a30
mov eax, dword [eax]
push eax
call fcn.0042f720
add esp, 4
lea ecx, [esp + 0x78]
mov edi, eax
call fcn.004410bd
push 0
push 1
push 0
lea ecx, [esp + 0x34]
call fcn.004104b0
mov esi, dword [esi + 0x40]
cmp esi, 7
ja case.0x403d5b.2
jmp dword [esi*4 + 0x404194]
mov esi, edi
jmp 0x403d85
mov esi, eax
jmp 0x403d85
cmp eax, 0xffffffff
mov esi, eax
jae 0x403d85
lea esi, [eax + 1]
jmp 0x403d85
test eax, eax
mov esi, eax
jbe 0x403d85
lea esi, [eax - 1]
jmp 0x403d85
mov esi, dword [esp + 0x24]
push 1
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.00410550
test eax, eax
jne case.default.0x403913
lea edx, [esp + 0x90]
lea ecx, [esp + 0x28]
push edx
call fcn.0040fd00
mov eax, dword [eax]
push esi
push eax
lea ecx, [esp + 0x18]
push 0x475254
push ecx
mov byte [esp + 0x118], 0x14
call fcn.0043f1f7
add esp, 0x10
mov byte [esp + 0x108], bl
lea ecx, [esp + 0x90]
jmp 0x4040d5
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, edi
call fcn.00411a30
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x10c], 0x15
call fcn.004411aa
lea ecx, [esp + 0x58]
mov byte [esp + 0x108], bl
call fcn.004410bd
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x47a194
call fcn.0044112b
push 1
push 1
lea edx, [esp + 0x68]
push 0
push edx
lea ecx, [esp + 0x3c]
call fcn.00410350
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x10c], 0x16
call fcn.004411aa
lea ecx, [esp + 0x5c]
mov byte [esp + 0x108], bl
call fcn.004410bd
mov eax, dword [esi + 0x40]
cmp eax, ebx
ja case.default.0x403e5d
jmp dword [eax*4 + 0x4041b4]
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
lea ecx, [esp + 0x34]
call fcn.00410510
test eax, eax
jne case.default.0x403913
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040fd00
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x475274
push ecx
mov byte [esp + 0x118], 0x1b
call fcn.0043f1f7
add esp, 0x10
mov byte [esp + 0x108], bl
lea ecx, [esp + 0x84]
jmp 0x4040d5
mov esi, dword [esi + 0x38]
lea ecx, [esp + 0x8c]
push esi
push ecx
mov ecx, edi
call fcn.00411a30
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push eax
mov byte [esp + 0x10c], 0x1c
call fcn.0040fe80
lea ecx, [esp + 0x8c]
mov byte [esp + 0x108], bl
call fcn.004410bd
lea ecx, [esp + 0x28]
call fcn.00410140
test eax, eax
jne case.default.0x403913
lea edx, [esp + 0x24]
lea ecx, [esp + 0x28]
push edx
call fcn.0040fd00
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
push 0x475238
push ecx
mov byte [esp + 0x114], 0x1d
call fcn.0043f1f7
add esp, 0xc
mov byte [esp + 0x108], bl
lea ecx, [esp + 0x24]
call fcn.004410bd
call fcn.0044e9c1
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 4]
push 0x30
push 0x4752b0
push edx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov eax, dword [eax + 0x1c]
push eax
call dword [0x454584]
lea ecx, [esp + 0x10]
mov byte [esp + 0x108], 4
call fcn.004410bd
lea ecx, [esp + 0x28]
mov byte [esp + 0x108], 3
call fcn.00410e30
mov byte [esp + 0x108], 2
call fcn.0044e9c1
mov ecx, dword [eax + 4]
call fcn.00445804
lea ecx, [esp + 0xc]
mov byte [esp + 0x108], 1
call fcn.004410bd
lea ecx, [esp + 0x14]
mov byte [esp + 0x108], 0
call fcn.004410bd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x108], 0xffffffff
call fcn.004410bd
mov ecx, dword [esp + 0x100]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x100
ret