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

Disassembly:
push 0xffffffffffffffff
push 0x522108
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x598
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
call fcn.0041e36c
mov eax, dword [esp + 0x5b8]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x5b0], edi
je 0x40d595
push 0x5cd924
jmp 0x40d59a
push 0x5cd91c
lea ecx, [esp + 0x24]
call fcn.0041e3cc
mov bl, 4
or ebp, 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0041e36c
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e36c
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e36c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e36c
push 0x5db530
lea ecx, [esi + 0x30]
mov byte [esp + 0x5b4], bl
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.0041e3cc
mov ecx, esi
mov dword [esi + 0x2c], edi
call fcn.0040cdb0
test eax, eax
je case.0x40d628.2
cmp dword [esi + 0x10], edi
jne 0x40e096
mov eax, dword [esi + 0x88]
cmp eax, 5
ja case.0x40d628.2
jmp dword [eax*4 + 0x40e344]
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x98]
xor edx, edx
push 1
mov dx, word [esi + 0xa4]
push ecx
push edx
push eax
mov eax, dword [esi + 0xa8]
push eax
call fcn.0040f8d0
add esp, 0x14
cmp eax, ebp
jmp 0x40d7e0
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x80]
xor edx, edx
push 1
mov dx, word [esi + 0x84]
push ecx
jmp 0x40d644
mov eax, dword [esi + 0x98]
push 1
push eax
call fcn.0040f800
add esp, 8
cmp eax, ebp
jne case.0x40d628.3
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x80]
xor edx, edx
push 1
mov dx, word [esi + 0x84]
push ecx
push edx
push eax
mov eax, dword [esi + 0xa8]
push eax
call fcn.0040f8d0
add esp, 0x14
cmp eax, ebp
je 0x40e1c1
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x98]
push edx
push eax
mov ax, word [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0xa8]
push eax
push 1
push ecx
call fcn.004106d0
add esp, 0x18
cmp eax, ebp
je 0x40e1c1
mov eax, dword [esi + 0x44]
xor edx, edx
mov dword [esp + 0x28], edx
push eax
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0xac]
push 0x22
push ecx
push edx
call fcn.0040fda0
add esp, 0x10
cmp eax, ebp
je 0x40e1c1
lea eax, [esp + 0x28]
push 0x22
push eax
jmp 0x40d7d6
mov eax, dword [esi + 0x98]
push 1
push eax
call fcn.0040f800
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x40e1c1
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x80]
xor edx, edx
push 1
mov dx, word [esi + 0x84]
push ecx
push edx
push eax
mov eax, dword [esi + 0xa8]
push eax
call fcn.0040f8d0
add esp, 0x14
cmp eax, ebp
je 0x40e1c1
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x90]
mov dx, word [esi + 0xa4]
push ecx
push eax
mov eax, dword [esi + 0xa8]
push edi
push edx
push 1
push eax
call fcn.00410680
add esp, 0x18
cmp eax, ebp
je 0x40e1c1
mov edx, dword [esi + 0x44]
xor ecx, ecx
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xac]
push 0x21
push eax
push ecx
call fcn.0040fda0
add esp, 0x10
cmp eax, ebp
je 0x40e1c1
lea edx, [esp + 0x28]
push 0x21
push edx
call fcn.00410830
add esp, 8
test eax, eax
je 0x40e1c1
jmp 0x40da64
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x80]
xor edx, edx
push 1
mov dx, word [esi + 0x84]
push ecx
push edx
push eax
mov eax, dword [esi + 0xa8]
push eax
call fcn.0040f8d0
add esp, 0x14
cmp eax, ebp
je 0x40e1c1
mov eax, dword [esi + 0x8c]
push 0x5db530
cmp eax, edi
lea ecx, [esp + 0x18]
je 0x40d83f
call fcn.0041e3cc
push edi
lea ecx, [esp + 0x18]
call fcn.0041e7aa
push 2
jmp 0x40d845
call fcn.0041e3cc
push edi
lea ecx, [esp + 0x18]
call fcn.0041e7aa
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x48]
push edx
push eax
mov ecx, dword [eax - 8]
mov eax, dword [esi + 0xa8]
push ecx
push eax
call fcn.00410730
add esp, 0x10
cmp eax, ebp
je 0x40e1c1
mov edx, dword [esi + 0x44]
xor ecx, ecx
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xac]
push 0x23
push eax
push ecx
call fcn.0040fda0
add esp, 0x10
cmp eax, ebp
je 0x40e1c1
lea edx, [esp + 0x28]
push 0x23
push edx
call fcn.00410830
add esp, 8
test eax, eax
je 0x40e1c1
mov eax, dword [esp + 0x29]
and eax, 0xff
sub eax, edi
je 0x40d94f
sub eax, 2
jne case.0x40d628.2
cmp dword [esi + 0x8c], edi
je case.0x40d628.2
mov edx, dword [esi + 0x48]
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x90]
push edx
push eax
mov eax, dword [esi + 0xa8]
push ecx
push eax
call fcn.00410770
add esp, 0x10
cmp eax, ebp
je 0x40e1c1
mov edx, dword [esi + 0x44]
xor ecx, ecx
mov dword [esp + 0x28], ecx
push edx
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xac]
push 0x24
push eax
push ecx
call fcn.0040fda0
add esp, 0x10
cmp eax, ebp
je 0x40e1c1
lea edx, [esp + 0x28]
push 0x24
push edx
call fcn.00410830
add esp, 8
test eax, eax
je 0x40e1c1
mov eax, dword [esi + 0x98]
lea edi, [esi + 0x98]
push 1
push eax
call fcn.0040f800
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x40d9c0
push 0x5db530
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 1
call fcn.0041e3cc
push ebp
nop
call 0x71ab2ead
mov edi, eax
lea ecx, [esp + 0x18]
shr eax, 0x18
push eax
call fcn.0041e7aa
mov ecx, edi
shr ecx, 0x10
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041e7aa
mov edx, edi
lea ecx, [esp + 0x18]
shr edx, 8
push edx
call fcn.0041e7aa
push edi
lea ecx, [esp + 0x1c]
call fcn.0041e7aa
jmp 0x40d9ec
mov eax, dword [edi]
push 0x5db530
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
mov ebp, dword [eax - 8]
call fcn.0041e3cc
push ebp
lea ecx, [esp + 0x1c]
call fcn.0041e7aa
push edi
lea ecx, [esp + 0x1c]
call fcn.0041e624
mov ecx, dword [esi + 0x48]
mov dx, word [esi + 0xa4]
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esi + 0xa8]
push eax
push ecx
push 1
push edx
call fcn.004107e0
add esp, 0x18
cmp eax, 0xffffffff
je 0x40e0eb
mov ecx, dword [esi + 0x44]
xor eax, eax
mov dword [esp + 0x28], eax
push ecx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xac]
push 0x25
push edx
push eax
call fcn.0040fda0
add esp, 0x10
cmp eax, 0xffffffff
je 0x40e0eb
lea ecx, [esp + 0x28]
push 0x25
push ecx
call fcn.00410830
add esp, 8
test eax, eax
je 0x40e0eb
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40e14f
cmp dword [esi + 0x88], 1
jne 0x40dbc4
lea edx, [esi + 4]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x84]
push eax
push ecx
call fcn.0041e606
push 0x5cd910
lea edx, [esp + 0x78]
push eax
push edx
mov byte [esp + 0x5bc], 5
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 6
call fcn.0041e360
lea ecx, [esp + 0x74]
mov byte [esp + 0x5b0], 5
call fcn.0041e354
lea ecx, [esp + 0x80]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x40dc2b
push 0x5db530
lea ecx, [esp + 0x18]
call fcn.0041e3cc
lea eax, [esi + 0x90]
push 0x5cd90c
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.0041e5ac
lea edx, [esi + 0x94]
mov byte [esp + 0x5b0], 7
push edx
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0041e606
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
mov byte [esp + 0x5b8], 8
call fcn.0040f050
add esp, 8
lea ecx, [esp + 0x7c]
mov byte [esp + 0x5b0], 7
call fcn.0041e354
lea ecx, [esp + 0x44]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea edx, [esp + 0x14]
lea eax, [esp + 0x4c]
push edx
push 0x5cd8f0
push eax
call fcn.0041e798
push 0x5cd8ec
lea ecx, [esp + 0x70]
push eax
push ecx
mov byte [esp + 0x5bc], 9
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 0xa
call fcn.0041e624
lea ecx, [esp + 0x6c]
mov byte [esp + 0x5b0], 9
call fcn.0041e354
mov byte [esp + 0x5b0], bl
lea ecx, [esp + 0x4c]
jmp 0x40dc26
lea edx, [esi + 0x9c]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
call fcn.0041e606
push 0x5cd910
lea edx, [esp + 0x8c]
push eax
push edx
mov byte [esp + 0x5bc], 0xb
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 0xc
call fcn.0041e360
lea ecx, [esp + 0x88]
mov byte [esp + 0x5b0], 0xb
call fcn.0041e354
mov byte [esp + 0x5b0], bl
lea ecx, [esp + 0x54]
call fcn.0041e354
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40dd0c
push 0x5db530
lea ecx, [esp + 0x18]
call fcn.0041e3cc
lea eax, [esi + 0x74]
push 0x5cd90c
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.0041e5ac
lea edx, [esi + 0x78]
mov byte [esp + 0x5b0], 0xd
push edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0041e606
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
mov byte [esp + 0x5b8], 0xe
call fcn.0040f050
add esp, 8
lea ecx, [esp + 0x38]
mov byte [esp + 0x5b0], 0xd
call fcn.0041e354
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea edx, [esp + 0x14]
lea eax, [esp + 0x64]
push edx
push 0x5cd8d4
push eax
call fcn.0041e798
push 0x5cd8ec
lea ecx, [esp + 0x88]
push eax
push ecx
mov byte [esp + 0x5bc], 0xf
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 0x10
call fcn.0041e624
lea ecx, [esp + 0x84]
mov byte [esp + 0x5b0], 0xf
call fcn.0041e354
lea ecx, [esp + 0x64]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea edx, [esi + 0x98]
lea eax, [esp + 0x40]
push edx
push 0x5cd8cc
push eax
call fcn.0041e798
push 0x5cd8ec
lea ecx, [esp + 0x40]
push eax
push ecx
mov byte [esp + 0x5bc], 0x11
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 0x12
call fcn.0041e624
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5b0], 0x11
call fcn.0041e354
lea ecx, [esp + 0x40]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
push 0x5cd8bc
lea ecx, [esp + 0x14]
call fcn.0041e4b6
push 0x5cd8a8
lea ecx, [esp + 0x14]
call fcn.0041e4b6
push 0x5cd88c
lea ecx, [esp + 0x14]
call fcn.0041e4b6
lea edx, [esi + 0x3c]
lea eax, [esp + 0x50]
push edx
push 0x5cd87c
push eax
call fcn.0041e798
push 0x5cd8ec
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x5bc], 0x13
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 0x14
call fcn.0041e624
lea ecx, [esp + 0x48]
mov byte [esp + 0x5b0], 0x13
call fcn.0041e354
lea ecx, [esp + 0x50]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
mov edx, dword [esi + 0x38]
lea eax, [esi + 0x38]
mov ecx, dword [edx - 8]
test ecx, ecx
je 0x40de5d
push eax
lea eax, [esp + 0x64]
push 0x5cd870
push eax
call fcn.0041e798
push 0x5cd8ec
lea ecx, [esp + 0x5c]
push eax
push ecx
mov byte [esp + 0x5bc], 0x15
call fcn.0041e5ac
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b4], 0x16
call fcn.0041e624
lea ecx, [esp + 0x58]
mov byte [esp + 0x5b0], 0x15
call fcn.0041e354
lea ecx, [esp + 0x60]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
push 0x5cd85c
lea ecx, [esp + 0x14]
call fcn.0041e4b6
lea ecx, [esp + 0x24]
call fcn.0041e36c
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], 0x17
call fcn.0041e684
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x8c]
push edx
push eax
call fcn.0041e792
test eax, eax
je 0x40dec2
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x40dec2
mov eax, dword [esp + 0x98]
test eax, eax
mov dword [esi + 0x20], eax
jbe 0x40dec2
push eax
lea eax, [esp + 0x28]
push 0x5cd848
push eax
call fcn.0041e3c6
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041e624
push 0x5cd8ec
lea ecx, [esp + 0x14]
call fcn.0041e4b6
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x48]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 0xa8]
push eax
call fcn.0040f660
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp eax, dword [ecx - 8]
jge 0x40df71
call fcn.0040f150
cmp eax, 0x274c
mov byte [esp + 0x5b0], bl
lea ecx, [esp + 0x24]
jne 0x40e0e6
call fcn.0041e354
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
or ebp, 0xffffffff
xor edi, edi
jmp 0x40d5a8
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x40e13f
lea ecx, [esp + 0x1c]
call fcn.0041e684
or ebp, 0xffffffff
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1a4]
mov edx, dword [esi + 0x44]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x68]
push edx
mov edx, dword [esi + 0xac]
push eax
lea ecx, [esp + 0x1ac]
push 0x400
push ecx
push edx
call fcn.0040fbd0
add esp, 0x14
cmp eax, ebp
je case.0x40e034.1
mov al, byte [esp + 0x1a4]
test al, al
je 0x40dffa
lea eax, [esp + 0x1a4]
lea ecx, [esp + 0x1c]
push eax
call fcn.0041e4b6
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x40df88
push 0x5cd8ec
lea ecx, [esp + 0x20]
call fcn.0041e4b6
jmp 0x40df88
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x30]
push ecx
mov ecx, edi
call fcn.0041e360
mov edx, dword [edi]
lea ecx, [esp + 0x78]
mov eax, dword [edx - 8]
lea edx, [esp + 0x70]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x34]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040e620
cmp eax, 3
ja case.0x40e034.3
jmp dword [eax*4 + 0x40e35c]
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
xor edi, edi
jmp 0x40d5a8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
mov dword [esp + 0x5b0], ebp
jmp 0x40e19e
call fcn.0041e354
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
mov dword [esp + 0x5b0], 0xffffffff
jmp 0x40e20c
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
mov dword [esp + 0x5b0], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.0041e354
mov eax, 2
jmp 0x40e326
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
mov dword [esp + 0x5b0], ebp
lea ecx, [esp + 0x20]
call fcn.0041e354
mov eax, 1
jmp 0x40e326
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x24], eax
xor ecx, ecx
cmp dword [edx - 8], ecx
je 0x40e252
cmp dword [esp + 0x78], 0xce
jne 0x40e24c
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x18], 1
add ecx, eax
mov dword [esi + 0x1c], ecx
jmp 0x40e255
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
lea ecx, [esp + 0x20]
mov dword [esp + 0x5b0], ebp
call fcn.0041e354
xor eax, eax
jmp 0x40e326
lea ecx, [esp + 0x24]
mov byte [esp + 0x5b0], bl
call fcn.0041e354
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5b0], 3
call fcn.0041e354
lea ecx, [esp + 0x18]
mov byte [esp + 0x5b0], 2
call fcn.0041e354
lea ecx, [esp + 0x14]
mov byte [esp + 0x5b0], 1
call fcn.0041e354
lea ecx, [esp + 0x10]
mov byte [esp + 0x5b0], 0
call fcn.0041e354
lea ecx, [esp + 0x20]
mov dword [esp + 0x5b0], ebp
call fcn.0041e354
mov eax, 3
mov ecx, dword [esp + 0x5a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5a4
ret 4